* [PATCH] CI: Add BUILD_ENABLE_REGEX option to conditionally enable builds
@ 2023-02-24 12:06 Peter Hoyes
2023-02-24 21:57 ` Jon Mason
0 siblings, 1 reply; 2+ messages in thread
From: Peter Hoyes @ 2023-02-24 12:06 UTC (permalink / raw)
To: meta-arm; +Cc: Peter Hoyes
From: Peter Hoyes <Peter.Hoyes@arm.com>
Mirrors of meta-arm may focus their development on a small subset of
MACHINEs so provide the option to restrict the boards that are built on
CI using the variable BUILD_ENABLE_REGEX. If set, it conditionally
enables builds; if unset there is no change in behavior.
This variable could be overridden in a scheduled build, to e.g. build
all the MACHINEs weekly.
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
---
.gitlab-ci.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2b5822ef..75d36094 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,6 +42,9 @@ stages:
extends: .setup
variables:
KUBERNETES_CPU_REQUEST: $CPU_REQUEST
+ only:
+ variables:
+ - $BUILD_ENABLE_REGEX == null || $CI_JOB_NAME =~ $BUILD_ENABLE_REGEX
script:
- KASFILES=$(./ci/jobs-to-kas "$CI_JOB_NAME")
- kas dump --update --force-checkout --resolve-refs --resolve-env $KASFILES
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] CI: Add BUILD_ENABLE_REGEX option to conditionally enable builds
2023-02-24 12:06 [PATCH] CI: Add BUILD_ENABLE_REGEX option to conditionally enable builds Peter Hoyes
@ 2023-02-24 21:57 ` Jon Mason
0 siblings, 0 replies; 2+ messages in thread
From: Jon Mason @ 2023-02-24 21:57 UTC (permalink / raw)
To: meta-arm, Peter Hoyes; +Cc: Peter Hoyes
On Fri, 24 Feb 2023 12:06:06 +0000, Peter Hoyes wrote:
> Mirrors of meta-arm may focus their development on a small subset of
> MACHINEs so provide the option to restrict the boards that are built on
> CI using the variable BUILD_ENABLE_REGEX. If set, it conditionally
> enables builds; if unset there is no change in behavior.
>
> This variable could be overridden in a scheduled build, to e.g. build
> all the MACHINEs weekly.
Applied, thanks!
[1/1] CI: Add BUILD_ENABLE_REGEX option to conditionally enable builds
commit: d5c024f1f5326fb19de33928acea34df4b58e9ba
Best regards,
--
Jon Mason <jon.mason@arm.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-25 2:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-24 12:06 [PATCH] CI: Add BUILD_ENABLE_REGEX option to conditionally enable builds Peter Hoyes
2023-02-24 21:57 ` Jon Mason
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).