Skip to content

Commit 34ccf01

Browse files
imheresamirGitHub Enterprise
authored andcommitted
Merge pull request #14 from Conjur-Enterprise/CNJR-6985-promote-maven-token
CNJR-6985: Add Promote Release
2 parents 666ad96 + e3c256d commit 34ccf01

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Jenkinsfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

secrets.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ JFROG_USERNAME: !var ci/artifactory/users/jenkins/username
44
JFROG_APIKEY: !var ci/artifactory/users/jenkins/password
55
JFROG_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
99
GPG_PRIVATE_KEY: !var:file ecosystems/java/gpg/private-key
1010
GPG_PASSWORD: !var:file ecosystems/java/gpg/password

0 commit comments

Comments
 (0)