ci: remove duplicate fork pipeline in MRs
authorEric Engestrom <eric@igalia.com>
Fri, 8 Sep 2023 18:15:15 +0000 (19:15 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 12 Sep 2023 17:55:53 +0000 (17:55 +0000)
The argument for keeping this duplicate was to not affect
the ci_run_n_monitor script (which by default picked the pipeline in the
user's fork), but the script already supported specifying
a `--pipeline-url` to support that use-case, and it now automatically
picks the MR pipeline if there is no fork pipeline.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25154>

.gitlab-ci.yml

index 08e64fa..83adc83 100644 (file)
@@ -1,7 +1,7 @@
 workflow:
   rules:
     # do not duplicate pipelines on merge pipelines
-    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN == "marge-bot"
+    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
       when: never
     # merge pipeline
     - if: $GITLAB_USER_LOGIN == "marge-bot" && $CI_COMMIT_BRANCH == null