jenkins: fix syntax #5

This commit is contained in:
Paul Campbell 2018-03-03 11:59:10 +00:00
parent 08e051799d
commit 88cdd087f1

View file

@ -18,8 +18,7 @@ pipeline {
(readMavenPom(file: 'pom.xml').version).contains("SNAPSHOT") }
}
steps {
def pom = readMavenPom(file: 'pom.xml')
error("Build failed because SNAPSHOT version: ${pom.groupId}:${pom.artifactId}:${pom.version}")
error("Build failed because SNAPSHOT version")
}
}
stage('Build') {