[gnome-shell-extensions] ci: Set some sensible defaults



commit 8d4586bd57c3222c96ccda8213a57894d900c282
Author: Jordan Petridis <jpetridis gnome org>
Date:   Fri Nov 20 14:25:53 2020 +0100

    ci: Set some sensible defaults
    
    * Allow for all jobs to be cancelled if a newer commit is pushed
    * Automatically retry jobs if they fail due to some infrastructure issue
    
    Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/144>

 .gitlab-ci.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1abeba2..260af5a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,18 @@ stages:
  - review
  - build
 
+default:
+    # Cancel jobs if newer commits are pushed to the branch
+    interruptible: true
+    # Auto-retry jobs in case of infra failures
+    retry:
+        max: 1
+        when:
+            - 'runner_system_failure'
+            - 'stuck_or_timeout_failure'
+            - 'scheduler_failure'
+            - 'api_failure'
+
 variables:
  LINT_LOG: "eslint-report.xml"
  JS_LOG: "js-report.txt"


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