Dilly B
Dilly B

Reputation: 1462

Azure Pipeline Yaml pipeline

I have two different yaml pipelines one for production and one for development. Dev:

trigger:
  batch: True
  branches:
    include:
      - Development
  paths:
    include: 
    - Azure/Payload/Development/Payload.json

Production:

trigger:
  batch: True
  paths:
    include: 
    - Azure/Payload/Prod/Payload.json

When I committed the development branch file both the Prod and dev and pipelines are executing. But it is executing successfully and on another side, if I trigger prod only the prod pipeline alone got triggered. I am not sure why and how this happens.

Upvotes: 1

Views: 125

Answers (1)

Krzysztof Madej
Krzysztof Madej

Reputation: 40533

Well, in the second you are missing branch filter like on the first one

 branches:
    include:
      - Development

So if your branch is Production please add branch filter:

 branches:
    include:
      - Production

Upvotes: 1

Related Questions