From a0ddd58ee23ac9d40e04c06afd0299227e91cc77 Mon Sep 17 00:00:00 2001 From: Jens Georg <jens.georg@desy.de> Date: Mon, 26 Apr 2021 12:42:27 +0200 Subject: [PATCH] Remove wrong c&p from doCppcheck --- vars/helper.groovy | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vars/helper.groovy b/vars/helper.groovy index 137482b..864c3ab 100644 --- a/vars/helper.groovy +++ b/vars/helper.groovy @@ -531,14 +531,12 @@ def doPublishAnalysis(ArrayList<String> builds) { /**********************************************************************************************************************/ def doCppcheck(String label, String buildType) { - def parentJob = env.JOB_NAME[0..-10] // remove "-analysis" from the job name, which is 9 chars long - // Generate coverage report as HTML and also convert it into cobertura XML file sh """ chown msk_jenkins -R /scratch cat > /scratch/script <<EOF #!/bin/bash -cd /scratch/build-${parentJob} +cd /scratch/build-${JOB_NAME}-${label}-${buildType} for VAR in \${JOB_VARIABLES} \${TEST_VARIABLES}; do export \\`eval echo \\\${VAR}\\` done -- GitLab