jenkins: fix syntax #3

This commit is contained in:
Paul Campbell 2018-03-03 09:26:36 +00:00
parent 5a73f5d7ae
commit d6564cef08

View file

@ -1,6 +1,5 @@
final String gitRepoUrl = 'git@github.com:kemitix/mon.git' final String gitRepoUrl = 'git@github.com:kemitix/mon.git'
final String mvn = "mvn --batch-mode --update-snapshots" final String mvn = "mvn --batch-mode --update-snapshots"
final Model pom = readMavenPom file: 'pom.xml'
pipeline { pipeline {
agent any agent any
@ -13,6 +12,7 @@ pipeline {
stage('no SNAPSHOT in master') { stage('no SNAPSHOT in master') {
// checks that the pom version is not a snapshot when the current branch is 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 // TODO: also check for SNAPSHOT when is a pull request with master as the target branch
final Model pom = readMavenPom file: 'pom.xml'
when { when {
expression { expression {
(env.GIT_BRANCH == 'master') && (env.GIT_BRANCH == 'master') &&