
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
- Set branch build policy for automatic trigger as mentioned in here Build Validation
- 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] -
Please help if this is possible. If yes, how to achieve this?
u/Ok_Scheme344 — 1 day ago