[polari/gnome-3-38] ci: Set some sensible defaults



commit 665dd542860d5fc43555f0cbaccea1142ee2ca4e
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
    
    https://gitlab.gnome.org/GNOME/polari/-/merge_requests/170

 .gitlab-ci.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f92a5706..d21797b5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,19 @@ stages:
  - build
  - deploy
 
+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:
     BUNDLE: "polari-git.flatpak"
     LINT_LOG: "eslint-report.xml"


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