From 7c3a4bf1b1f3d176fb637be72b686ffa78130557 Mon Sep 17 00:00:00 2001 From: apostolof Date: Sun, 28 Feb 2021 14:18:59 +0200 Subject: [PATCH] fix: fix sanitization --- jenkins/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins/Jenkinsfile b/jenkins/Jenkinsfile index 7fc1e3c..7233768 100755 --- a/jenkins/Jenkinsfile +++ b/jenkins/Jenkinsfile @@ -85,7 +85,7 @@ pipeline { steps { script { cleanSlateEnabled = sh (script: "git log -1 | grep -qE 'ci: force'", returnStatus: true) - sanitizedBranchName = "${BRANCH_NAME#*/}" + sanitizedBranchName = sh(script: 'echo $GIT_BRANCH | sed -e "s:.*/::g"', returnStdout: true).trim() appPackageChanged = sh(script: 'bash ./jenkins/check_package_changed.sh app "$GIT_COMMIT" "$GIT_PREVIOUS_COMMIT"', returnStdout: true).trim() contractsPackageChanged = sh(script: 'bash ./jenkins/check_package_changed.sh contracts "$GIT_COMMIT" "$GIT_PREVIOUS_COMMIT"', returnStdout: true).trim()