Skip to content

Commit

Permalink
Merge pull request #28 from Conjur-Enterprise/fix-promote
Browse files Browse the repository at this point in the history
CNJR-5878: Fix Jenkinsfile git config command location
  • Loading branch information
szh authored and GitHub Enterprise committed Dec 18, 2024
2 parents f0f432b + b1dbc6b commit 23e7845
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
Expand Down

0 comments on commit 23e7845

Please sign in to comment.