AleksG
AleksG

Reputation: 360

Possible to trigger Azure Devops Pipeline on any branch commit?

To trigger pipeline for branches starting with "features/", I'd do:

trigger:
  - features/*

But is there a way to trigger for ALL branches? I've tried

trigger:
  - *

and

trigger:
  - /*

But neither work.

Upvotes: 3

Views: 548

Answers (1)

AleksG
AleksG

Reputation: 360

Seems like triggering by path instead of branch does the trick:

trigger:
  paths:
    include:
      - /*

Or according to docs, simply:

trigger:
  paths:
    include:
      - '*'

Upvotes: 4

Related Questions