From ff79647f05bb21ea797392eb0e641385b736aeb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Sun, 10 Mar 2024 10:37:59 +0100 Subject: [PATCH] ci: Cancel running jobs No need to have parallel pipelines when updating a job. Part-of: --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 52ebe190..633b4be9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,19 @@ image: debian:bookworm +default: + # Protect CI infra from rogue jobs + timeout: 15 minutes + # Allow jobs to be caneled on new commits + interruptible: true + # Retry on infra hickups automatically + retry: + max: 1 + when: + - api_failure + - runner_system_failure + - scheduler_failure + - stuck_or_timeout_failure + stages: - build - test