]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
gitlab-ci.yml: Add an explicit env variable to mark a job as broken
authorErik Skultety <eskultet@redhat.com>
Thu, 14 Jan 2021 10:36:54 +0000 (11:36 +0100)
committerErik Skultety <eskultet@redhat.com>
Fri, 15 Jan 2021 09:44:39 +0000 (10:44 +0100)
Thanks to the 'rules' syntax, this will translate to
'allow_failure:true' and let the job fail but will not affect the rest
of the pipeline.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
.gitlab-ci.yml

index 7636544ee19fedb3b0c93fb722e518f9c9e74dfe..673327fb9e65dbf7ef448664107417583a0b4d9d 100644 (file)
@@ -21,6 +21,8 @@ stages:
   services:
     - docker:dind
   rules:
+    - if: "$TEMPORARILY_DISABLED"
+      allow_failure: true
     - when: on_success
   before_script:
     - export TAG="$CI_REGISTRY_IMAGE/ci-$NAME:latest"
@@ -46,6 +48,8 @@ stages:
   stage: builds
   image: $CI_REGISTRY_IMAGE/ci-$NAME:latest
   rules:
+    - if: "$TEMPORARILY_DISABLED"
+      allow_failure: true
     - when: on_success
   cache:
     paths:
@@ -103,6 +107,8 @@ stages:
     - cat ci/cirrus/$NAME.yml
     - cirrus-run -v --show-build-log always ci/cirrus/$NAME.yml
   rules:
+    - if: "$TEMPORARILY_DISABLED"
+      allow_failure: true
     - if: "$CIRRUS_GITHUB_REPO && $CIRRUS_API_TOKEN"
 
 .cross_build_job:
@@ -113,6 +119,8 @@ stages:
       - ccache/
     key: "$CI_JOB_NAME"
   rules:
+    - if: "$TEMPORARILY_DISABLED"
+      allow_failure: true
     - when: on_success
   before_script:
     - *script_variables