Skip to content

CI_MERGE_REQUEST_ID not available to child pipeline

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

I have a parent-child pipeline.

The child pipeline relies on rules to only run certain jobs if $CI_MERGE_REQUEST_ID exists.

This rule doesn't work since this variable isn't passed from parent pipeline to child pipeline.

This impacts the only: ['merge_requests'] policy as well.

Edited by 🤖 GitLab Bot 🤖