Cooper Link
Cooper Link

Reputation: 9

Wildcard trigger in Azure Devops not picking up branch changes

I have a Azure Devops build pipeline that has multiple branch triggers. I am using a wildcard to capture changes to branches under refresh/4.*. An example of a branch that I am targeting in this case would be refresh/4.13.0-refresh. But, the wildcard trigger is not firing when I push new refresh branches.

Here is the trigger definition yml

trigger:
  branches:
    include:
      - dev
      - refs/tags/4.*
      - release/4.x
      - nightly-build
      - refresh/4.*

I was expecting this definition to trigger the build action when a new branch such as refresh/4.9.1-refresh is pushed to the remote repo. All of the other branch triggers here are succeeding. My hunch is that - could be treated as a delimiter. But, I tried updating the trigger to refresh/4.*-refresh with no success.

Upvotes: 0

Views: 862

Answers (1)

Luiz Borba
Luiz Borba

Reputation: 11

The definition seems correct but is the - refresh/4.* line also present in the yml from your refresh/4.13.0-refresh branch? If it's a new change to the yml that is only in the main branch for example, then it wouldn't trigger yet.

Upvotes: 1

Related Questions