Commit 17658fd3 authored by Yorick Peterse's avatar Yorick Peterse

Fix use of CI_PROJECT_NAME for syncing branches

The variable CI_PROJECT_NAME only includes the project name, not the
entire namespace; for that you need to use CI_PROJECT_PATH.

The incorrect use of this variable meant that stable and security
branches would not be synced to the appropriate target repositories.
parent 9dfd885b
...@@ -371,11 +371,11 @@ ...@@ -371,11 +371,11 @@
################## ##################
.releases:rules:canonical-dot-com-gitlab-stable-branch-only: .releases:rules:canonical-dot-com-gitlab-stable-branch-only:
rules: rules:
- if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAME == "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_SERVER_HOST == "gitlab.com" && $CI_PROJECT_NAME == "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$/'
################# #################
# Reports rules # # Reports rules #
......
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