Allow passing artifacts for multi-project merged results pipelines

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

Problem to solve

When using multi-project pipelines, artifacts can be passed to the downstream pipelines using the needs:project keyword.

This is also possible when the upstream pipeline is a merge request pipeline, by using the $CI_MERGE_REQUEST_REF_PATH CI/CD variable as the reference for the downstream pipeline to fetch the artifacts.

For merge results pipelines (which are a type of merge request pipeline), we do not expose a similar variable, which makes it not possible to fetch artifacts from those.

Proposal

Allow downstream pipelines to fetch artifacts from upstream merged results pipelines, possibly by exposing the reference to the upstream pipeline via a CI/CD variable.

Edited by 🤖 GitLab Bot 🤖