简体   繁体   English

来自 Azure DevOps 的已取消构建显示为失败

[英]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.

相关问题 如何将软件构建从 Azure DevOps 部署到内部服务器? - How to deploy software builds from Azure DevOps to internal servers? 在 azure DevOps 中将构建从一个管道复制到另一管道 - Copy Builds from one pipeline to other pipeline in azure DevOps 如何从 Azure DevOps 管道将多个发布或构建导出到桌面? - How to export multiple Release or Builds from Azure DevOps Pipeline to desktop? WebJob 从 Azure DevOps Pipeline 部署,但未显示在 WebApp 下 - WebJob gets deployed from Azure DevOps Pipeline but doesn't show up under WebApp Azure DevOps 管道失败 - Azure devops pipeline failed 取消构建时执行任务 - Azure DevOps 管道 - Execute task when build is cancelled - Azure DevOps Pipelines 如何在 Azure Devops 中相同管道的两个版本之间共享文件? - How to share a file between two builds of same pipeline in Azure Devops? 如何在 Azure Devops 中使用 OData 获取项目的构建 - How to get the Builds for a project using OData in Azure Devops 如何将多个 json 文件导入/上传到 Azure Devops Pipeline Builds? - How to import/upload multiple json files to Azure Devops Pipeline Builds? 如何在 Azure DevOps 中触发额外的 PR 提交构建? - How to trigger additional PR commit builds in Azure DevOps?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM