u/Ok_Scheme344

Azure pipeline does not trigger when Pipeline YAML is in different branch
▲ 2 r/azuredevops+1 crossposts

Azure pipeline does not trigger when Pipeline YAML is in different branch

In azure pipelines, I am working on a repo test where 3 branches are there main , develop and ci . This repo is part of Azure Git Repos .
Now my ci branch contains an Azure Pipelines YAML file, and Azure Pipelines is created using that YAML.
Now I want to run an automatic trigger when a PR is raised from develop to main branch.
PLease note that main and develop does not contain pipeline yaml file.

Steps I have followed

  1. Set branch build policy for automatic trigger as mentioned in here Build Validation
  2. Change Pipeline default branch. Here I have set default branch to ci

Even after these settings, the automatic pipeline does not trigger when PR is raised from develop to main branch.

PR refer to pipeline but status stauck at [image below] -

https://preview.redd.it/tvny2xdwrbwg1.png?width=2015&format=png&auto=webp&s=3057648c9f63f4b195b89fcfc2bbd900898af094

Please help if this is possible. If yes, how to achieve this?

reddit.com
u/Ok_Scheme344 — 1 day ago