Multi-project pipeline graphs are unavailable from API
Description
GitLab includes multi-project pipeline graphs that can be created by using $CI_JOB_TOKEN
when triggering another pipeline.
https://docs.gitlab.com/ee/ci/multi_project_pipeline_graphs.html#how-it-works
However, the API does not seem to support any way to:
- Determine upstream pipelines from the current pipeline (or from any job in the pipeline)
- Determine downstream pipelines from the current pipeline (or from any job in the pipeline)
Use case:
We have special deployment pipelines that we kick off from a project's pipeline. E.g., a pipeline (let's call it ID 1234) for /group/some-project
will kick off a pipeline (let's call it ID 6789) for /group/deploy-some-project
in certain circumstances. Given that I have the pipeline ID 6789, there appears to be no way to use that ID to retrieve the pipeline ID 1234. If I could get pipeline ID 1234, I could use the API to determine what commit triggered the initial pipeline, who triggered it, who to notify if something went wrong or if the original committer needs to perform a manual step, etc.
The API does have a section for Pipeline Triggers, but this does not include any information about pipeline graphs that are created using the $CI_JOB_TOKEN
variable.
Proposal
Add APIs to be able to get upstream
and downstream
pipelines from the current pipeline.