Azure DevOps Server batch trigger runs other build pipelines

I could reproduce the same issue when the Yaml files have the same name in each branch.

For example:

--MyRepository
 |
 --main branch
   -- azure-pipelines.yml
 |
 --Task-8624-batch-pipeline-builds branch
   -- azure-pipelines.yml

When you commit the change to Task-8624-batch-pipeline-builds, it will trigger other pipelines.

For example:

enter image description here

To solve this issue, you could change each Yaml file name in branches and make sure that they are unique.

For example:

--MyRepository
 |
 --main branch
   -- azure-pipelines-main.yml
 |
 --Task-8624-batch-pipeline-builds branch
   -- azure-pipelines-test.yml

Then you need to modify the related pipelines to use the correct YAML files. In this case, when you commit to Task-8624-batch-pipeline-builds branch, it will not trigger other pipelines.

Result:

enter image description here

Read more here: Source link