azure - Azure DevOps 中的 "Build after the previous execution has succeeded"

标签 azure azure-devops

我有一个 Azure Pipeline A,它在 PR 合并时执行到我的 Salesforce 组织的部署。

我的问题陈述是,

我无法限制此管道的执行,使其仅在同一管道的上一个执行完成后才执行。

换句话说,如果该管道是由多个 PR 触发的,那么我只想运行该管道的一个实例。下一次应该等到上一次运行完成。

有办法实现吗?

最佳答案

您可以启用“构建正在进行时批量更改”选项以一次执行一个管道。 enter image description here 如果您的问题是关于发布管道的,您可以通过在特定阶段的预部署条件下的“部署队列设置”中指定执行次数来实现此目的。

enter image description here

关于azure - Azure DevOps 中的 "Build after the previous execution has succeeded",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58399455/

相关文章:

python - Azure 应用服务无法部署 Streamlit 应用程序

azure - 管理 Azure Functions 中的 SQL 连接

azure - 无法从服务器外部访问 ElasticSearch 实例 - Azure Windows 2012

azure - 如何在 Azure DevOps 管道上以编程方式下载日志?

wordpress - 是否有与 Microsoft Azure 上的 PHP/WordPress 一起使用的配置转换的等效项?

Azure CDN 规则引擎将 www 添加到裸域

visual-studio-code - 请求个人访问 token 时发生错误。无法读取未定义的属性 x-vss-resourceenant

node.js - AzureDevops : How to publish test results when tests fail?

azure - 从 VSTS 获取 Azure AD 访问 token ?

git - Azure Repos,带有用于创建 pull 请求的远程 URL