New pipeline on Azure DevOps shows error message "Some recent issues detected related to pipeline trigger."

Viewed 5418

I created a brand new CI/CD pipeline in Azure DevOps using a yaml file that is working in another pipeline, no problem. I set its default branch to cloud-main, not master as is the suggestion. The new pipeline gives me the message "Some recent issues detected related to pipeline trigger." Running the pipeline works fine. How do I get rid of the error message?

2 Answers

To fix this and remove the error I went to

  • Edit the pipeline >
  • ... (menu shown by three dots in upper right corner) >
  • Triggers >
  • YAML (tab across the top of the page) >
  • click list item 'Get sources' >
  • On the right panel there's a dropdown menu full of git branches under the label 'Default branch for manual and scheduled builds' that was on 'master', I changed it to cloud-main. cloud-main is the branch I want to be default. That's also the branch I chose earlier when making the pipeline.

Strange that I have to drill down into this setting to change it. Hope my experience helps someone else who is getting this same error.

Related