Support variable expansion in parallel matrix jobs.

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

Proposal

Support the use of variable expansion in parallel matrix job definitions

Example

Original

build_update_patches_base_version:
  extends:
  - .build_update_patches_base_version
  parallel:
    matrix:
     - MINOR_VERSION: ["1.20", "1.21", "1.22", "1.23", "1.24"]

test_prepare_patches:
  extends:
   - .test_prepare_patches
  needs:
  - test_apply_patches
  parallel:
    matrix:
     - MINOR_VERSION: ["1.20", "1.21", "1.22", "1.23", "1.24"]

Proposal

.tested_versions:
  variables:
    TESTED_VERSIONS: 1.20 1.21 1.22 1.23 1.24

build_update_patches_base_version:
  extends:
  - .build_update_patches_base_version
  - .tested_versions
  parallel:
    matrix:
     - MINOR_VERSION: ${TESTED_VERSIONS}

test_apply_patches:
  extends:
  - .test_apply_patches
  - .tested_versions
  parallel:
    matrix:
     - MINOR_VERSION: ${TESTED_VERSIONS}
Edited by 🤖 GitLab Bot 🤖