ci: Add default retry policy and mark jobs as interruptible by default
authorJordan Petridis <jordan@centricular.com>
Fri, 7 Apr 2023 11:34:15 +0000 (14:34 +0300)
committerJordan Petridis <jordan@centricular.com>
Fri, 7 Apr 2023 11:34:15 +0000 (14:34 +0300)
Copied from gst/gst repo.

Part-of: <https://gitlab.freedesktop.org/gstreamer/orc/-/merge_requests/93>

.gitlab-ci.yml

index 181933e..07a578f 100644 (file)
@@ -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