From 23763640d8c0e16152708efec4c8c39f0d3479cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Sz=C3=A9pk=C3=BAti?= Date: Wed, 6 Dec 2023 15:53:09 +0100 Subject: [PATCH] Do not run all.sh release components in PR jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bence Szépkúti --- vars/common.groovy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vars/common.groovy b/vars/common.groovy index e037167a9..d420a6e92 100644 --- a/vars/common.groovy +++ b/vars/common.groovy @@ -284,6 +284,13 @@ BranchInfo get_branch_information() { */ info.all_all_sh_components['build_armcc'] = 'arm-compilers' echo "Overriding all_all_sh_components['build_armcc'] = 'arm-compilers'" + + if (env.JOB_TYPE == 'PR') { + // Do not run release components in PR jobs + info.all_all_sh_components = info.all_all_sh_components.findAll { + component, platform -> !component.startsWith('release') + } + } } return info }