Skip to content

Add trigger support for matrix jobs

Furkan Ayhan requested to merge 270957-parallel-trigger into master

What does this MR do?

With this MR, downstream pipelines can be triggered with parallel:matrix keyword. And each downstream pipeline will receive respected variables assigned from matrix.

More info is in doc/ci/yaml/README.md change of this MR.

Related to #270957 (closed)

Screenshots (strongly suggested)

# .gitlab-ci.yml

test:
  stage: test
  script: echo test

deploy:
  stage: deploy
  trigger:
    include: child.yml
  parallel:
    matrix:
      - PROVIDER: ovh
        STACK: [monitoring, app]
      - PROVIDER: [gcp, vultr]
        STACK: [data]
# child.yml

test:
  script:
    - echo $PROVIDER
    - echo $STACK

Screen_Shot_2021-02-27_at_16.10.46

Screen_Shot_2021-02-27_at_16.11.08

Screen_Shot_2021-02-27_at_16.11.16

Screen_Shot_2021-02-27_at_16.11.22

Screen_Shot_2021-02-27_at_16.11.27

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Furkan Ayhan

Merge request reports