Skip to content

Commit 23e7845

Browse files
szhGitHub Enterprise
authored andcommitted
Merge pull request #28 from Conjur-Enterprise/fix-promote
CNJR-5878: Fix Jenkinsfile git config command location
2 parents f0f432b + b1dbc6b commit 23e7845

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ if (params.MODE == "PROMOTE") {
7575

7676
// Pull existing images from internal registry in order to promote
7777
infrapool.agentSh """
78-
git config --global --add safe.directory "\$(pwd)"
7978
export PATH="release-tools/bin:${PATH}"
8079
docker pull registry.tld/conjur-authn-k8s-client:${sourceVersion}
8180
docker pull registry.tld/conjur-authn-k8s-client-redhat:${sourceVersion}
@@ -84,6 +83,8 @@ if (params.MODE == "PROMOTE") {
8483
// Promote source version to target version.
8584
summon ./bin/publish --promote --source ${sourceVersion} --target ${targetVersion}
8685
"""
86+
87+
sh 'git config --global --add safe.directory "$(pwd)"'
8788
}
8889

8990
// Copy Github Enterprise release to Github

0 commit comments

Comments
 (0)