From 88cdd087f125c6be4c700c18c2b672bc7fabc9e7 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 3 Mar 2018 11:59:10 +0000 Subject: [PATCH] jenkins: fix syntax #5 --- Jenkinsfile.groovy | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index b62191b..b9d862b 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -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') {