jenkins: fix syntax #5
This commit is contained in:
parent
08e051799d
commit
88cdd087f1
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,7 @@ pipeline {
|
||||||
(readMavenPom(file: 'pom.xml').version).contains("SNAPSHOT") }
|
(readMavenPom(file: 'pom.xml').version).contains("SNAPSHOT") }
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
def pom = readMavenPom(file: 'pom.xml')
|
error("Build failed because SNAPSHOT version")
|
||||||
error("Build failed because SNAPSHOT version: ${pom.groupId}:${pom.artifactId}:${pom.version}")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
|
Loading…
Reference in a new issue