[libvirt PATCH v2 3/3] gitlab-ci.yml: Add an explicit env variable to mark a job as broken

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 .gitlab-ci.yml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index de6ead01d8..5f542ab02a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -44,6 +44,8 @@ stages:
   stage: builds
   image: $CI_REGISTRY_IMAGE/ci-$NAME:latest
   rules:
+    - if: "$JOB_TEMPORARY_DISABLED"
+      allow_failure: true
     - when: on_success
   cache:
     paths:
@@ -101,6 +103,8 @@ stages:
     - cat ci/cirrus/$NAME.yml
     - cirrus-run -v --show-build-log always ci/cirrus/$NAME.yml
   rules:
+    - if: "$TEMPORARY_DISABLE"
+      allow_failure: true
     - if: "$CIRRUS_GITHUB_REPO && $CIRRUS_API_TOKEN"
 
 .cross_build_default_job_template:
@@ -111,6 +115,8 @@ stages:
       - ccache/
     key: "$CI_JOB_NAME"
   rules:
+    - if: "$TEMPORARY_DISABLED"
+      allow_failure: true
     - when: on_success
   before_script:
     - *script_variables
-- 
2.29.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux