Skip to content

Dynamic matrix arguments in dependencies

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

Here !82734 (merged) was described how to get deps artifacts from some dynamically generated parent job.

But it looks like it is only possible with specific constant argument values.

Can we set it dynamically?

like:

ruby:
  parallel:
    matrix:
      - RUBY_VERSION: ['2.0','3.0']
        PROVIDER: aws
# This will generate: `ruby: [3.0, aws]`


test:
  dependencies:
    - "ruby: [$RUBY_VERSION, $PROVIDER]"

current implementation requires specifying the exact job name as per the doc:

test:
  dependencies:
    - "ruby: [3.0, aws]"

Proposal

Please note that this can be solved along with #423553.

Edited by 🤖 GitLab Bot 🤖