From b1dbc6bdbb4015e34c92ec7462935ad56c19b1bc Mon Sep 17 00:00:00 2001 From: Shlomo Zalman Heigh Date: Wed, 18 Dec 2024 12:06:46 -0500 Subject: [PATCH] CNJR-5878: Fix Jenkinsfile git config command location --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ef2b23b4..41d535c3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,7 +75,6 @@ if (params.MODE == "PROMOTE") { // Pull existing images from internal registry in order to promote infrapool.agentSh """ - git config --global --add safe.directory "\$(pwd)" export PATH="release-tools/bin:${PATH}" docker pull registry.tld/conjur-authn-k8s-client:${sourceVersion} docker pull registry.tld/conjur-authn-k8s-client-redhat:${sourceVersion} @@ -84,6 +83,8 @@ if (params.MODE == "PROMOTE") { // Promote source version to target version. summon ./bin/publish --promote --source ${sourceVersion} --target ${targetVersion} """ + + sh 'git config --global --add safe.directory "$(pwd)"' } // Copy Github Enterprise release to Github