An error occurred while fetching issues.
Add predefined variables to fetch the information of upstream job (Cross-project pipeline)
Description
For fetching the information of the upstream job, there are two solutions.
- Add predefined variables to fetch the information of upstream job (Cross-project pipeline)
- Pass/get variables with $CI_JOB_TOKEN pipeline triggers
This issue focuses on the first approach.
Proposal
Add predefined variables to fetch the information of upstream job (Cross-project pipeline)
The trigger could automatically pass, in addition to CI_PIPELINE_SOURCE=pipeline
, other information like project id, pipeline id, job id... from which in principle branch and commit could be obtained.
Links / references
Use cases
- Described in https://gitlab.com/gitlab-org/gitlab-ee/issues/2772