mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 02:19:18 -05:00
gitlab-ci: Prefer MR rules for any pipeline associated with a MR
GitLab 13.3 started creating MR pipelines in the parent project of a MR from a fork, at least when the MR submitter is a developer in the parent project. If the pipeline is associated with a MR, we should use the corresponding rules regardless of which project hosts the pipeline.
This commit is contained in:
+4
-4
@@ -2,17 +2,17 @@
|
|||||||
|
|
||||||
.run_manually:
|
.run_manually:
|
||||||
rules:
|
rules:
|
||||||
|
- if: '$CI_MERGE_REQUEST_ID'
|
||||||
|
when: manual
|
||||||
- if: '$CI_PROJECT_PATH == "cmake/cmake"'
|
- if: '$CI_PROJECT_PATH == "cmake/cmake"'
|
||||||
when: delayed
|
when: delayed
|
||||||
start_in: 5 minutes
|
start_in: 5 minutes
|
||||||
- if: '$CI_MERGE_REQUEST_ID'
|
|
||||||
when: manual
|
|
||||||
- when: never
|
- when: never
|
||||||
|
|
||||||
.run_automatically:
|
.run_automatically:
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PROJECT_PATH == "cmake/cmake"'
|
|
||||||
when: on_success
|
|
||||||
- if: '$CI_MERGE_REQUEST_ID'
|
- if: '$CI_MERGE_REQUEST_ID'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
- if: '$CI_PROJECT_PATH == "cmake/cmake"'
|
||||||
|
when: on_success
|
||||||
- when: never
|
- when: never
|
||||||
|
|||||||
Reference in New Issue
Block a user