summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2021-01-26 08:39:42 +0200
committerJordan Petridis <jordan@centricular.com>2021-01-26 08:54:44 +0200
commit8aa80fb7140cff633d99490ce51d57f9147c2767 (patch)
tree7bb8ab269e9188f23a2878bf8f305f72917f631e /gitlab
parent08cdfca671cc5ad98d5a9af66cf70072e6da7859 (diff)
citemplate: only spawn a single pipeline in Merge Requests
This is the 3rd or 4th time we are trying this yes, (!331), but hear me out. This time is for Real! Jokes aside, its possible to avoid spawning >1 pipeline per event with gitlab 13.8. https://gitlab.com/gitlab-org/gitlab/-/issues/201845 https://gitlab.com/gitlab-org/gitlab/-/issues/299409 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-ci/-/merge_requests/391>
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/ci_template.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml
index 106a34a..ac69fdc 100644
--- a/gitlab/ci_template.yml
+++ b/gitlab/ci_template.yml
@@ -91,8 +91,13 @@ variables:
workflow:
rules:
- if: $CI_MERGE_REQUEST_IID
+ # don't create a pipeline if its a commit pipeline, on a branch and that branch has
+ # open merge requests (bc we will get a MR build instead)
+ - if: $CI_OPEN_MERGE_REQUESTS
+ when: never
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH
+
#
# Global CI policy
#