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" } }