fix Jenkinsfile as it is script

This commit is contained in:
Olivier Lamy 2019-05-29 13:20:38 +10:00 committed by GitHub
parent 660e745d85
commit 8524e04e66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

5
Jenkinsfile vendored
View File

@ -41,10 +41,9 @@ node(jenkinsEnv.nodeSelection(osNode)) {
def MAVEN_GOAL='verify'
stage('Configure deploy') {
when {
branch 'master'
if (env.BRANCH=='master'){
MAVEN_GOAL='deploy -DdeployAtEnd=true'
}
MAVEN_GOAL='deploy -DdeployAtEnd=true'
}
stage('Build / Unit Test') {