diff --git a/Jenkinsfile b/Jenkinsfile index 573603a09e18c77d96c41c520f5f26fdef2ae1fb..70a55eba0fa43ea172230ce4bfaddd4f1fce34ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -373,11 +373,11 @@ pipeline { dir('/var/lib/jenkins/workspace/TDinternal/community'){ gitlog = sh(script: "git log -1 --pretty=%B ", returnStdout:true) println gitlog - if (!(gitlog =~ /\((.*)\)/)){ + if (!(gitlog =~ /\((.*?)\)/)){ autoCancelled = true error('Aborting the build.') } - temp = (gitlog =~ /\((.*)\)/) + temp = (gitlog =~ /\((.*?)\)/) temp = temp[0].remove(1) scope = temp.split(",") }