jenkins: fix syntax #3
This commit is contained in:
parent
5a73f5d7ae
commit
d6564cef08
1 changed files with 1 additions and 1 deletions
|
@ -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') &&
|
||||
|
|
Loading…
Reference in a new issue