Trusted way to get pipeline upstream project

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

Release notes

Problem to solve

I'm using multi-project gitlab-ci pipelines.

A downstream project's pipeline is triggered by some other projects. It takes upper stream project full path as an argument/variable for its job's script.

Currently, pass variables to downstream pipeline seems the best approach.

It means I need configure all upper stream projects' ci yaml with something like UPPER_STREAM: $CI_PROJECT_PATH, and templates may help.

Proposal

Add some predefined variables for multi-project pipelines, such as: $CI_PARENT_PROJECT_PATH, $CI_PARENT_PROJECT_ID, so developer won't pay extra effort on each upper stream project ci yaml.

Intended users

Feature Usage Metrics

Edited by 🤖 GitLab Bot 🤖