From a35176060e7663ebdd7002e63d9eaa94a46de8ed Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Fri, 17 Dec 2021 16:59:42 +0800 Subject: [PATCH] reluctant regex --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 573603a09e..70a55eba0f 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(",") } -- GitLab