Skip to content

Matrix variable can not be used in rules:exists

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

Matrix variable can be used in rules:changes

rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      changes:
        - $file
parallel:
  matrix: 
    - file: file1
    - file: file2

However, when Matrix variable was used in rules:exists, the variable can not be recognized.

rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      exists:
        - $file
parallel:
  matrix: 
    - file: file1
    - file: file2
Edited by 🤖 GitLab Bot 🤖