From a0b2c6fc71832ce8c487b34e2f252c397f472b69 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 21 Jul 2021 10:56:50 +0100 Subject: [PATCH] CI: set interruptible on all jobs The previous attempt at setting interruptible didn't work as it needs to happen on all tasks, as once a single uninterruptible job has executed the pipeline cannot be cancelled. Unfortunately the setup jobs were not interruptible, so the pipeline could never be cancelled. Change-Id: I5416bc3f9a883ace24c12607b2ebc24bc428b50b Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c94b0d09..212a8bc9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,7 @@ stages: # Common job fragment to get a worker ready .setup: stage: build + interruptible: true variables: KAS_WORK_DIR: $CI_PROJECT_DIR/work KAS_REPO_REF_DIR: $CI_BUILDS_DIR/persist/repos @@ -84,6 +85,7 @@ n1sdp/bootstrap: # What percentage of machines in the layer do we build machine-coverage: stage: bootstrap + interruptible: true script: - ./ci/check-machine-coverage coverage: '/Coverage: \d+/'