From 4dbd7598f0762263f29e4da7ab3a53c37bf96e49 Mon Sep 17 00:00:00 2001
From: Jens Georg <jens.georg@desy.de>
Date: Wed, 14 Apr 2021 10:36:36 +0200
Subject: [PATCH] Revert previous change a bit

The cppcheck is not run as part for build
---
 vars/helper.groovy | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/vars/helper.groovy b/vars/helper.groovy
index e34b2d9..e0590eb 100644
--- a/vars/helper.groovy
+++ b/vars/helper.groovy
@@ -451,11 +451,7 @@ def doPublishBuildTestDeploy(ArrayList<String> builds) {
     sh """
       pwd
       mkdir -p build
-      if [ -e /scratch/build-${parentJob}/compile_commands.json ]; then
-          cppcheck --inline-suppr --enable=all --xml --xml-version=2  -ibuild --project=/scratch/build-${parentJob}/compile_commands.json 2> ./build/cppcheck.xml
-      else
-          cppcheck --inline-suppr --enable=all --xml --xml-version=2  -ibuild -Iinclude -I/usr/include . 2> ./build/cppcheck.xml
-      fi
+      cppcheck --inline-suppr --enable=all --xml --xml-version=2  -ibuild -Iinclude -I/usr/include . 2> ./build/cppcheck.xml
     """
     publishCppcheck pattern: 'build/cppcheck.xml'
   }
-- 
GitLab