diff options
author | Jordan Petridis <jordan@centricular.com> | 2023-04-07 14:34:15 +0300 |
---|---|---|
committer | Jordan Petridis <jordan@centricular.com> | 2023-04-07 14:34:15 +0300 |
commit | 56f5af937854dd82cb14ae2bf166fa9ab436f30a (patch) | |
tree | 8609bf57d0dfbe14211facd7061febed927bf849 /.gitlab-ci.yml | |
parent | d6627d8a88e15375ee01a3b037780f745634417a (diff) | |
download | orc-56f5af937854dd82cb14ae2bf166fa9ab436f30a.tar.gz |
ci: Add default retry policy and mark jobs as interruptible by default
Copied from gst/gst repo.
Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/93>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 181933e..07a578f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,6 +15,21 @@ workflow: - if: '$CI_COMMIT_BRANCH && $CI_COMMIT_REF_PROTECTED == "true"' - if: '$CI_COMMIT_TAG' +# +# Global CI policy +# +# This can be used to configure global behaviour our our jobs. +# +default: + retry: + max: 2 + when: + - 'runner_system_failure' + - 'stuck_or_timeout_failure' + - 'scheduler_failure' + - 'api_failure' + interruptible: true + debian sid: image: 'debian:sid' stage: build @@ -239,7 +254,7 @@ pages: image: 'debian:stable' stage: 'deploy' #needs: [ 'docs' ] - #interruptible: false + interruptible: false before_script: - apt update - apt-get install --yes meson ninja-build build-essential gtk-doc-tools |