From 56f5af937854dd82cb14ae2bf166fa9ab436f30a Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 7 Apr 2023 14:34:15 +0300 Subject: [PATCH] ci: Add default retry policy and mark jobs as interruptible by default Copied from gst/gst repo. Part-of: --- .gitlab-ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 -- 2.7.4