Skip to content

Commit

Permalink
Update publishing token
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Lacour committed Jul 5, 2018
1 parent c2d89f0 commit e4b9971
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ lockIf(isIntegration(), 'integration-lock') {
deleteDir()
docker.image('drbosse/gradle-git:4.5.0-jre8-alpine').inside("--entrypoint=''") {
unstash 'merge-result'
sh 'gradle build --stacktrace'
sh './gradlew clean build assembleDist --stacktrace'
stash name: 'merge-result', includes: '**', useDefaultExcludes: false
}
}

Expand Down Expand Up @@ -98,6 +99,7 @@ PROMOTE = false
stage('promotion'){
try {
timeout(time: 1, unit: 'HOURS') {
// TODO: Automate tagging?
input 'Promote? (Remember to tag!)'
}
PROMOTE = true
Expand All @@ -113,7 +115,7 @@ if (PROMOTE) {
deleteDir()
docker.image('drbosse/gradle-git:4.5.0-jre8-alpine').inside("--entrypoint=''") {
unstash 'merge-result'
withCredentials([string(credentialsId: '2git-token', variable: 'GITHUB_TOKEN')]) {
withCredentials([string(credentialsId: 'praqmarelease', variable: 'GITHUB_TOKEN')]) {
sh "./gradlew githubRelease --stacktrace -PGITHUB_TOKEN=\$GITHUB_TOKEN"
}
}
Expand Down

0 comments on commit e4b9971

Please sign in to comment.