[matrix job] allow customization of resulting job name

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

Proposal

It may be interesting to allow customization of resulting job name with parallel:matrix. By exposing a variable CI_NODE_PARENT_NAME, we could let user specify the jobs name. For example

deploystacks:
   parallel:
     resulting_job_name: "%CI_NODE_PARENT_NAME - %PROVIDER - %STACK"
     matrix:
      - PROVIDER: aws
        STACK:
          - monitoring
          - app1
          - app2
      - PROVIDER: ovh
        STACK: [monitoring, backup, app]
      - PROVIDER: [gcp, vultr]
        STACK: [data, processing]

This will generate job names

  • deploystacks - aws - monitoring
  • deploystacks - aws - app1
  • deploystacks - aws - app2
  • deploystacks - ovh - monitoring ...

The idea is to lower the length that can be annoying when using one dimensional matrices introduced in gitlab 13.5 and let user only expose the value of the matrix element instead of parent-node-name [ matrix item]. This behaviour leads to a troublesome experience as, to find the good job, you have to scroll and overlay with the mouse to find the right job you want to access.

Notes:

Edited by 🤖 GitLab Bot 🤖