trigger:forward doesn't work in pipeline with grandchild
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Related: #213729 (closed)
Issue
When the pipeline has a grandchild (ie. child pipeline calling another child pipeline), trigger:forward
doesn't seem to work in both the child and the grandchild.
MRE: https://gitlab.com/garyng/trigger-forward-grandchild-mre/-/tree/mre/grandchild
Pipeline run: https://gitlab.com/garyng/trigger-forward-grandchild-mre/-/pipelines/507909312
Variable values:
Results
Expected result:
TEST_VAR is test_var
TEST_VAR_UI is test_var_ui
Actual result:
TEST_VAR is test_var
TEST_VAR_UI is <default>
Workarounds
Workaround 1: manually forward
Manually forward the variables in the child pipeline: https://gitlab.com/garyng/trigger-forward-grandchild-mre/-/blob/mre/parent-child-workaround/.gitlab-ci.yml#L16-17
Pipeline run: https://gitlab.com/garyng/trigger-forward-grandchild-mre/-/pipelines/507910038
Weirdly in this case, trigger:forward
will work for the grandchild.
Workaround 2: manually run
Manually run the pipeline and insert the correct variable values.
Pipeline run: https://gitlab.com/garyng/trigger-forward-grandchild-mre/-/pipelines/507909778
Variable values: