Gabriel
Gabriel

Reputation: 821

Have multiple pipeline triggers in Azure

I have a pipeline, let's call it c. I would like c to be triggered if either pipeline a or pipeline b finishes. Please see bellow my attempt. Anyone knows why it does not work?

resources:
  pipelines:
    - pipeline: a
      source: ci-a
      trigger:
        branches:
          - '*'
    - pipeline: ci-b
      source: b
      trigger:
        branches:
          - '*'

Upvotes: 1

Views: 145

Answers (1)

qBasicBoy
qBasicBoy

Reputation: 56

Should work like this

resources:
  pipelines: 
  - pipeline:  Trigger-A #This is an alias 
    source:  ci-a #name of pipeline that you want to be triggering this pipeline
    trigger:
      branches: #Branches to include
      - *
  - pipeline:  Trigger-B
    source:  ci-b
    trigger:
      branches: 
      - *

Upvotes: 1

Related Questions