diff --git a/Jenkinsfile b/Jenkinsfile index 72d0058..4451d90 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,7 +12,7 @@ def grouper_src_branch = "GROUPER_RELEASE_${git_tag}" node('docker') { -pipeline { + if (git_tag ==~ tag_pattern ) { environment { JAVA_HOME='/home/centos/agent/tools/hudson.model.JDK/Corretto-JDK8/amazon-corretto-8.322.06.2-linux-x64' @@ -89,4 +89,4 @@ pipeline { error "Aborting build since tag doesn't match pattern '${tag_pattern}'" } } -} +