I have a Repository in Azure Repos which has branches as master, build, feature. Build Branch and Feature branches have their own pipelines code in the azure-pipelines.yaml in the branch itself respectively. So that they can have their dedicated pipelines

The problem is that When I commit to the Build branch or in the feature branch then, both the pipelines are triggered.

I have written in my azure-pipelines.yml

        - build
       - feature
  • I have to ask, are "build" and "feature" spelled correctly? – Crowcoder May 6 at 10:32
  • yes it is spelled correctly – Pradeep Upadhyay May 6 at 17:05
  • Is it just feature or feature/something? – Dhruv Patel Jul 21 at 23:36

If you have set a CI trigger make sure you have set the filter to the exact branch which you need the build to be triggered and not the entire repository which is the default case.

| improve this answer | |

You might consider using the pipeline trigger YAML override feature.

Go to the pipeline designer/editor view. Next to the "Run" button is the ellipsis. From that menu, select "Triggers". From the "Continuous Integration" section, you can choose "Override the YAML continuous integration trigger from here". Then you can tailor the pipeline triggers very specifically without the need to define them in the YAML.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.