From 66592db72579a8a093ec60a09f05084bd53dd4d2 Mon Sep 17 00:00:00 2001 From: Cherry Wang Date: Wed, 25 Sep 2024 17:22:29 +0800 Subject: [PATCH] fix: Update when conditional in edgeXBuildGoParallel Signed-off-by: Cherry Wang --- vars/edgeXBuildGoParallel.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/edgeXBuildGoParallel.groovy b/vars/edgeXBuildGoParallel.groovy index 93cbaacc..54fbc9ac 100644 --- a/vars/edgeXBuildGoParallel.groovy +++ b/vars/edgeXBuildGoParallel.groovy @@ -274,7 +274,7 @@ def call(config) { when { beforeAgent true allOf { - expression { not { env.GIT_BRANCH =~ /^PR-.*/ } } + expression { !env.GIT_BRANCH.startsWith('PR-') } expression { edgex.nodeExists(config, 'arm64') } } }