File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,15 @@ if (params.MODE == "PROMOTE") {
3131 summon ./bin/publish.sh
3232 cp target/*.jar "${ assetDirectory} "
3333 """
34+
35+ // Ensure the working directory is a safe git directory for the subsequent
36+ // promotion operations after this block.
37+ infrapool. agentSh ' git config --global --add safe.directory "$(pwd)"'
3438 }
39+
40+ // Copy Github Enterprise release to Github
41+ release. copyEnterpriseRelease(params. VERSION_TO_PROMOTE )
42+
3543 return
3644}
3745
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ JFROG_USERNAME: !var ci/artifactory/users/jenkins/username
44JFROG_APIKEY : !var ci/artifactory/users/jenkins/password
55JFROG_REPO : " libs-snapshot-local"
66
7- OSSRH_USERNAME : !var ecosystems/java/ossrh/username
8- OSSRH_PASSWORD : !var ecosystems/java/ossrh/password
7+ OSSRH_USERNAME : !var ecosystems/java/ossrh/token/ username
8+ OSSRH_PASSWORD : !var ecosystems/java/ossrh/token/ password
99GPG_PRIVATE_KEY : !var:file ecosystems/java/gpg/private-key
1010GPG_PASSWORD : !var:file ecosystems/java/gpg/password
You can’t perform that action at this time.
0 commit comments