From e4b9971656fd304cb2a2c2c78f8f6c2bb27f9b56 Mon Sep 17 00:00:00 2001 From: Thierry Lacour Date: Thu, 5 Jul 2018 12:16:04 +0200 Subject: [PATCH] Update publishing token --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dd3162e..abada61 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 } } @@ -98,6 +99,7 @@ PROMOTE = false stage('promotion'){ try { timeout(time: 1, unit: 'HOURS') { + // TODO: Automate tagging? input 'Promote? (Remember to tag!)' } PROMOTE = true @@ -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" } }