[英]Cancelled Builds from Azure DevOps show up as failed
I have been looking at using azure devops invoke in our organisation and you guys have a fantastic functionality!我一直在研究在我们的组织中使用 azure devops 调用,你们有很棒的功能!
I have one rather significant issue, however.然而,我有一个相当重要的问题。 Cancelled builds seem to show up as failed.
取消的构建似乎显示为失败。 This makes my pipeline red most of the time as we tend to let our pull request builds cancel mid-way through as we dont have them as a required pass to complete the PR.
这使得我的管道大部分时间都是红色的,因为我们倾向于让我们的拉取请求构建在中途取消,因为我们没有将它们作为完成 PR 的必需通道。
. .
Many thanks,非常感谢,
We suppose that you could check the two factors below.我们假设您可以检查以下两个因素。
1.If your are using yaml pipeline, you could define with below to disable pull request triggers 1.如果您正在使用 yaml 管道,您可以在下面定义以禁用拉取请求触发器
pr: none # Disable pull request triggers.
2.You could disable the build validation policy below. 2.您可以禁用下面的构建验证策略。
Check project setting> repositories>repo policies>branch policies>build validation, if this policy is enabled, then the pipeline will be triggered when pull request is created.检查项目设置>存储库>回购策略>分支策略>构建验证,如果启用此策略,则在创建拉取请求时将触发管道。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.