Support branch ref in external repo CI/CD configuration file
What does this MR do?
Gitlab supports setting the CI/CD configuration file to an external repo with: .gitlab-ci.yml@mygroup/another-project
but does not support setting a branch ref as part of it, although it is supported in the include
syntax. This MR adds support for it with .gitlab-ci.yml@mygroup/another-project:ref
. I'm open for a different syntax.
Related issues
I assume this is is requested here as well: #14376 (comment 551820835).
Check-list
Pre-merge
Consider the effect of the changes in this merge request on the following:
-
Different pipeline types - Non-canonical projects:
-
gitlab-foss
-
security
-
dev
-
personal forks
-
-
Pipeline performance
I don't see a problem with any of those. The feature es there and this MR just exposes it in the web interface.
Post-merge
-
Consider communicating these changes to the broader team following the communication guideline for pipeline changes
Merge request reports
Activity
Thank you for your contribution to GitLab. We believe that everyone can contribute and contributions like yours are what make GitLab great!
- Our Merge Request Coaches will ensure your contribution is reviewed in a timely manner*.
- If you haven't, please set up a
DANGER_GITLAB_API_TOKEN
. - You can comment
@gitlab-bot label ~"group::"
to add a group label. - After a few days, feel free to ask
@gitlab-bot help
or ping a Merge Request Coach. - Read more how to get help.
This message was generated automatically. You're welcome to improve it.
added Community contribution label
Hi @marcel.amirault @sselhorn, please review this documentation Merge Request.
added documentation twtriaged labels
Hi @marcel.amirault @sselhorn, please review this documentation Merge Request.
added 1st contribution label
mentioned in issue gitlab-org/quality/triage-reports#4275 (closed)
- Resolved by Fabio Pitino
@fabiopitino Since this is related to Edit: Fixed link: #14376 (closed), could you take a look? cc @jreporter
Edited by Marcel Amirault
- Resolved by Fabio Pitino
@jspricke Thanks a lot for the contribution! I've pinged an engineer to take a first look at it for us
assigned to @jspricke
requested review from @fabiopitino
added devopsverify grouppipeline execution labels
- Resolved by Jochen Sprickerhof
- Resolved by Jochen Sprickerhof
added featureenhancement label
added typefeature label
removed review request for @fabiopitino
added 1 commit
- 00281d14 - Move external repo with ref to extra context