Commit 5812e9c1 authored by Yorick Peterse's avatar Yorick Peterse

Allow skipping of Merge Train syncs

This adds support for skipping Merge Train syncs by adding the
"merge-train skip" tag to a commit message. This is necessary so we can
reduce the number of redundant sync pipelines as part of our release
process.

See https://gitlab.com/gitlab-com/gl-infra/delivery/-/issues/1258 for
more information.
parent 1073f51a
...@@ -676,10 +676,14 @@ ...@@ -676,10 +676,14 @@
################## ##################
.releases:rules:canonical-dot-com-gitlab-stable-branch-only: .releases:rules:canonical-dot-com-gitlab-stable-branch-only:
rules: rules:
- if: '$CI_COMMIT_MESSAGE =~ /\[merge-train skip\]/'
when: never
- if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab" && $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable-ee$/' - if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab" && $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable-ee$/'
.releases:rules:canonical-dot-com-security-gitlab-stable-branch-only: .releases:rules:canonical-dot-com-security-gitlab-stable-branch-only:
rules: rules:
- if: '$CI_COMMIT_MESSAGE =~ /\[merge-train skip\]/'
when: never
- if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/security/gitlab" && $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable-ee$/' - if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/security/gitlab" && $CI_COMMIT_REF_NAME =~ /^[\d-]+-stable-ee$/'
################# #################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment