From 13050a9fb3116aab5e5cea0f8882fe09a2f65cb0 Mon Sep 17 00:00:00 2001 From: kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:26:32 -0600 Subject: CI: Add ability to enable and disable stacks (#42255) It is useful to enable/disable stacks in order to handle turning specific stacks on/off based on runner availability, stack stability, testing requirements, etc. The disabled stack list takes precedence over the enable stack list. The assumption is that stacks that are disabled are so due to some functionality missing or broken for that stack. The enable stack list implicitly disables all stacks not listed in the enable list. --- share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'share') diff --git a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml index 0b1be61b6b..e3a9c32013 100644 --- a/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml +++ b/share/spack/gitlab/cloud_pipelines/.gitlab-ci.yml @@ -84,6 +84,10 @@ default: PUSH_BUILDCACHE_DEPRECATED: "${PROTECTED_MIRROR_PUSH_DOMAIN}/${CI_COMMIT_REF_NAME}/${SPACK_CI_STACK_NAME}" rules: + - if: $SPACK_CI_DISABLE_STACKS =~ /.+/ && $SPACK_CI_STACK_NAME =~ $SPACK_CI_DISABLE_STACKS + when: never + - if: $SPACK_CI_ENABLE_STACKS =~ /.+/ && $SPACK_CI_STACK_NAME !~ $SPACK_CI_ENABLE_STACKS + when: never - if: $CI_COMMIT_REF_NAME == "develop" # Pipelines on develop only rebuild what is missing from the mirror when: always -- cgit v1.2.3-70-g09d2