mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
gitlab-ci.yml: Add an explicit env variable to mark a job as broken
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>
This commit is contained in:
parent
db44db77e7
commit
c86aedf60f
@ -21,6 +21,8 @@ stages:
|
|||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
rules:
|
rules:
|
||||||
|
- if: "$TEMPORARILY_DISABLED"
|
||||||
|
allow_failure: true
|
||||||
- when: on_success
|
- when: on_success
|
||||||
before_script:
|
before_script:
|
||||||
- export TAG="$CI_REGISTRY_IMAGE/ci-$NAME:latest"
|
- export TAG="$CI_REGISTRY_IMAGE/ci-$NAME:latest"
|
||||||
@ -46,6 +48,8 @@ stages:
|
|||||||
stage: builds
|
stage: builds
|
||||||
image: $CI_REGISTRY_IMAGE/ci-$NAME:latest
|
image: $CI_REGISTRY_IMAGE/ci-$NAME:latest
|
||||||
rules:
|
rules:
|
||||||
|
- if: "$TEMPORARILY_DISABLED"
|
||||||
|
allow_failure: true
|
||||||
- when: on_success
|
- when: on_success
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
@ -103,6 +107,8 @@ stages:
|
|||||||
- cat ci/cirrus/$NAME.yml
|
- cat ci/cirrus/$NAME.yml
|
||||||
- cirrus-run -v --show-build-log always ci/cirrus/$NAME.yml
|
- cirrus-run -v --show-build-log always ci/cirrus/$NAME.yml
|
||||||
rules:
|
rules:
|
||||||
|
- if: "$TEMPORARILY_DISABLED"
|
||||||
|
allow_failure: true
|
||||||
- if: "$CIRRUS_GITHUB_REPO && $CIRRUS_API_TOKEN"
|
- if: "$CIRRUS_GITHUB_REPO && $CIRRUS_API_TOKEN"
|
||||||
|
|
||||||
.cross_build_job:
|
.cross_build_job:
|
||||||
@ -113,6 +119,8 @@ stages:
|
|||||||
- ccache/
|
- ccache/
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
rules:
|
rules:
|
||||||
|
- if: "$TEMPORARILY_DISABLED"
|
||||||
|
allow_failure: true
|
||||||
- when: on_success
|
- when: on_success
|
||||||
before_script:
|
before_script:
|
||||||
- *script_variables
|
- *script_variables
|
||||||
|
Loading…
x
Reference in New Issue
Block a user