Fix deploy credentials

This commit is contained in:
Gabriele C 2018-07-18 13:00:57 +02:00
parent 90b4adf74e
commit b034f7647b

16
Jenkinsfile vendored
View File

@ -3,11 +3,6 @@ pipeline {
label 'argon2'
}
tools {
maven 'Maven 3'
jdk 'OracleJDK 8'
}
options {
timeout(time: 5, unit: 'MINUTES')
timestamps()
@ -39,8 +34,15 @@ pipeline {
stage ('Build & Deploy') {
steps {
withCredentials([string(credentialsId: 'authme-coveralls-token', variable: 'COVERALLS_TOKEN')]) {
sh 'mvn -B clean package javadoc:aggregate-jar source:jar deploy coveralls:report -DrepoToken=$COVERALLS_TOKEN'
withMaven(
maven: 'Maven 3'
jdk: 'OracleJDK 8'
globalMavenSettingsConfig: 'e5b005b5-be4d-4709-8657-1981662bcbe3'
mavenOpts: '-Xmx4G'
) {
withCredentials([string(credentialsId: 'authme-coveralls-token', variable: 'COVERALLS_TOKEN')]) {
sh 'mvn -B clean package javadoc:aggregate-jar source:jar deploy coveralls:report -DrepoToken=$COVERALLS_TOKEN'
}
}
}
post {