Problem to solve
I would like to trigger a multi-project pipeline using a custom trigger token. That is the user in project A triggers pipeline in project A and a special trigger job want to trigger pipeline in project B. The problem is that user does not have a permission to trigger pipelines in project B. Thus we have a custom token with such permission. We can now use curl to trigger using API but even with --from argument we still have no visual connection between pipelines.
Is there a way to somehow supply custom token directly to torgger job? Sort of:
trigger_job:
trigger:
project: project-group/my-downstream-project
api_token: ??? <-------------------- like this?
Steps to reproduce
Create a trigger job using:
trigger_job:
trigger:
observe visual connection between pipleines (an arrow pointing to another pipeline, a drop-down list with downstream pipeline job etc)
If we trigger with API:
api_trigger_job:
script:
curl --from ..
no such visual connection displayed.
Versions
- Self-managed
Versions
- GitLab 17.3