From f676ca8f4c6e4c1953d37e6045693a6ee484fb7c Mon Sep 17 00:00:00 2001 From: Fredrik Svedberg Date: Wed, 29 Jan 2025 17:31:51 +0100 Subject: [PATCH] MLBEDSW-9881 Update pipelines Updated workflow rules. Change-Id: I5f05858bef52e08872092cac2e6fc2d3bf1711e3 Signed-off-by: Fredrik Svedberg --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1c75fb6..71153a3b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,6 +43,10 @@ variables: workflow: auto_cancel: on_new_commit: interruptible + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + - if: $CI_COMMIT_TAG # This job does not produce any artifacts, however the result from the build # will be stored in the cache -- GitLab