简体   繁体   中英

Unable to queue build error with Azure DevOps Pull Request

I want to trigger a build before pull request starts for merging (in Azure DevOps). For this option, I have added the Build validation under branch policies. But if I created a new Pull Request, I am getting the message as "Unable to queue build".

Please anyone let me know the option I selected solves my requirement. If yes, how to solve this "Unable to queue build" issue. If no, any option available to achieve my requirement.

Thanks

Your options is achievable, and the problem now is most likely caused by you triggering the pipeline in the wrong repository.

For example, if you create a pipeline from repository 1 and trigger the pipeline in a pull request created from repository 2, the pipeline will not be queued.

Modify your pipeline or PR repository so that the pipeline and PR use the same repository, this should be resolved.

I was also facing the same problem, checking pipeline for being disabled or edited anyhow, but no differences.

But by checking the linked work items (tasks/pbis), I saw that one or more had not been completed. After changing the states everything worked fine.

I had the same problem and i changed the branch policy to include the build pipeline: https://docs.microsoft.com/en-us/azure/devops/repos/git/branch-policies?view=azure-devops&tabs=browser

Branch policy could be found from:

  • Repos -> Branches
  • Click on the 3 dots to the right of the branch that the PR is going to.

实际分行政策

添加构建策略

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM