Add missing error when snapshot
This commit is contained in:
parent
cdd31fe49c
commit
352b3d1473
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ pipeline {
|
|||
(env.GIT_BRANCH == 'master') &&
|
||||
(readMavenPom(file: 'pom.xml').version).contains("SNAPSHOT") }
|
||||
}
|
||||
steps {
|
||||
error("Build failed because SNAPSHOT version")
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
parallel {
|
||||
|
|
Loading…
Reference in a new issue