[mutter/alatiera/workflow-rules] ci: Set some sensible defaults
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/alatiera/workflow-rules] ci: Set some sensible defaults
- Date: Thu, 19 Nov 2020 22:42:04 +0000 (UTC)
commit 68de539cbced316e74a154125358015719b2cbd9
Author: Jordan Petridis <jpetridis gnome org>
Date: Fri Nov 20 00:40:34 2020 +0200
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
.gitlab-ci.yml | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7960301125..dbe0283489 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,6 +30,18 @@ stages:
dnf clean all
+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'
+
workflow:
rules:
- if: '$CI_MERGE_REQUEST_IID'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]