Contradicting documentation regarding CI pipelines
Hi,
Experimenting with pipeline schedules on this local GitLab v19.5.3 instance, I've reached the point where I'd like a given pipeline to push back to the original repository. The following option looks great:
[x] Allow Git push requests to the repository
CI/CD job token can be used to authenticate a Git push to this repository, using the permissions of the user that started the job.
However, it's quite surprising that those git push, be it about branch and/or tag, don't trigger normal pipelines/jobs when they happen.
Wondering whether I missed something, I've checked quite thoroughly the Types of pipeline documentation which is very clear (emphasis mine):
Your pipeline can run every time you commit changes to a branch.
This type of pipeline is called a branch pipeline. They display a branch label in pipeline lists.
This pipeline runs by default. No configuration is required.
A pipeline can run every time you create or push a new tag.
This type of pipeline is called a tag pipeline. They display a tag label in pipeline lists.
This pipeline runs by default. No configuration is required.
Checking further, it happens to be directly contradicted by the “Allow Git push requests to the repository” documentation:
When you use a job token to push to the project, no CI/CD pipelines are triggered. The job token has the same access permissions as the user who started the job.
This is very misleading and time-wasting: once that option is selected, the git push aspect is solved, and there's absolutely no reason for someone wondering why pipelines aren't getting created to suspect it has anything to do about this option. Especially since the few lines included in the Settings > CI/CD page don't mention anything specific about not triggering pipelines!
I see that there are efforts to make it possible to lift that restriction (#569974), and that would be terrific.
In the meanwhile, this really should be documented in a much more straightforward and discoverable manner:
- by mentioning the restriction upfront, directly on the
Settings > CI/CDpage; - by mentioning that restrictions may actually apply (ideally with a crosslink), on the “Types of pipeline” page;
- by maybe mentioning an official way to bypass this limitation.
Thanks for considering.