From 3e5c0b48a5695af424a92b796a82523b7ff74cb1 Mon Sep 17 00:00:00 2001 From: Bruce Bujon Date: Mon, 23 Jun 2025 15:27:30 +0200 Subject: [PATCH] feat(ci): Cancel running pipeline on new PR push --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index efebefafad6..4fa391da6c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,6 +41,22 @@ variables: description: "Enable flaky tests" value: "false" +default: + interruptible: true + +# trigger new commit cancel +workflow: + auto_cancel: + on_new_commit: interruptible + rules: + - if: '$CI_COMMIT_BRANCH == "master"' + auto_cancel: + on_new_commit: none + - if: '$CI_COMMIT_BRANCH =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/' + auto_cancel: + on_new_commit: none + - when: always + .test_matrix: &test_matrix - testJvm: &test_jvms - "8"