From 352b3d1473fa76606731f754e8c168f0c23ae653 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 3 Mar 2018 12:47:49 +0000 Subject: [PATCH] Add missing error when snapshot --- Jenkinsfile.groovy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile.groovy b/Jenkinsfile.groovy index 2573ec4..9eb564f 100644 --- a/Jenkinsfile.groovy +++ b/Jenkinsfile.groovy @@ -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 {