Skip to content

Add new CI variables: CI_PARENT_PIPELINE_ID, CI_PARENT_PROJECT_ID, CI_PARENT_JOB_ID

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

We need to retrieve the parent pipeline ID for a child pipeline for reporting. Currently we have to resort ot ugly API calls from inside the job, which need to be done in every place we want the variable, or passing them explictely with the trigger keyword.

Intended users

People who use the CI.

P.S. The relevant support ticket is https://support.gitlab.com/hc/requests/197728.

Edited by Manuel Grabowski