From b1ee4036bfd59dfd506ed8312b63edffc913b1c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 23 Dec 2019 10:06:25 +0100 Subject: [PATCH] gitlab-ci: Mark jobs as interruptible Allowing redundant pipelines to be automatically cancelled. --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6dc7de8bf..d80e5e848 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -30,12 +30,14 @@ stages: - docker-image - build-and-test -# Retry jobs after runner system failures .ci-run-policy: + # Retry jobs after runner system failures retry: max: 2 when: - runner_system_failure + # Cancel CI run if a newer commit is pushed to the same branch + interruptible: true debian-testing: extends: