From d6564cef08d333cafa1f3271cbcf62fa8ef2047e Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 3 Mar 2018 09:26:36 +0000 Subject: [PATCH] jenkins: fix syntax #3 --- Jenkinsfile.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index 45684a5..0ea3cfc 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -1,6 +1,5 @@ final String gitRepoUrl = 'git@github.com:kemitix/mon.git' final String mvn = "mvn --batch-mode --update-snapshots" -final Model pom = readMavenPom file: 'pom.xml' pipeline { agent any @@ -13,6 +12,7 @@ pipeline { stage('no SNAPSHOT in master') { // checks that the pom version is not a snapshot when the current branch is master // TODO: also check for SNAPSHOT when is a pull request with master as the target branch + final Model pom = readMavenPom file: 'pom.xml' when { expression { (env.GIT_BRANCH == 'master') &&