From fa3fda823cdc8a1705f600b98c708558750e8a7e Mon Sep 17 00:00:00 2001 From: Cherry Wang Date: Tue, 20 Aug 2024 16:20:25 +0800 Subject: [PATCH] fix: skip arm64 stage when running edgex-go PR validation Signed-off-by: Cherry Wang --- vars/edgeXBuildGoParallel.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vars/edgeXBuildGoParallel.groovy b/vars/edgeXBuildGoParallel.groovy index ce92e4cf..93db98d3 100644 --- a/vars/edgeXBuildGoParallel.groovy +++ b/vars/edgeXBuildGoParallel.groovy @@ -273,7 +273,10 @@ def call(config) { stage('arm64') { when { beforeAgent true - expression { edgex.nodeExists(config, 'arm64') } + allOf { + expression { not { env.BRANCH_NAME ==~ /^PR-*/ } } + expression { edgex.nodeExists(config, 'arm64') } + } } agent { node {