gpt4 book ai didi

azure-devops - 拉取请求的 Azure DevOps 批处理

转载 作者:行者123 更新时间:2023-12-02 03:01:01 24 4
gpt4 key购买 nike

我将 batch: true 用于 Azure DevOps 管道的触发器:

trigger:
batch: true
branches:
include:
- master

..它按预期工作(下一个构建仅在上一个完成时开始)。

默认情况下,多个构建并行运行: enter image description here

我试过:

pr:
batch: true
branches:
include:
- master

..但它失败了: enter image description here

如何对拉取请求执行相同的操作?

最佳答案

批处理目前仅适用于 CI 触发器。

Pull request (PR) triggers cause a build to run whenever a pull request is opened with one of the specified target branches, or when changes are pushed to such a pull request.

默认情况下,如果将新提交推送到同一个 PR,则由拉取请求 (PR) 触发的管道将被取消。您可以在更新拉取请求时自动取消现有管道。

这在大多数情况下是可取的,因为通常您不想在过时的代码上继续运行管道。如果您不想要这种行为,您可以将 autoCancel: false 添加到您的 PR 触发器。

  pr: 
autoCancel: false
branches:
- master

更多详情请引用我们的官方文档:Specify events that trigger pipeline builds and releases

关于azure-devops - 拉取请求的 Azure DevOps 批处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59975950/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com