Azure Pipelines 中的个人 CI 与批量 CI
Individual CI vs Batched CI in Azure Pipelines
Azure Pipelines 中的个人 CI 和批量 CI 有什么区别?
它与 Azure Pipelines YAML 中 trigger
的 batch
选项有什么关系?
trigger:
batch: 'true'
branches:
include:
- main
How does it relate to the batch option of trigger in Azure Pipelines YAML ?
如文档 Push trigger 所述:
trigger:
batch: boolean # batch changes if true; start a new build for every push if false (default)
解释:
构建批处理将进行多次提交并一次性构建它们,而不是将每个提交作为一个单独的构建排队,这会延长构建的总时间。如果您在 Azure Pipelines 中构建代码并且经常发现自己在等待排队的构建。您可能会发现启用构建批处理很有用。
因此,我们现在可以了解该文档中的状态 start a new build for every push if false (default)
。这意味着如果我们将此批处理选项的值设置为 false,它将为每个推送(提交).
启动一个新构建
这相当于我们在经典模式下的在构建过程中批量更改选项:
Azure Pipelines 中的个人 CI 和批量 CI 有什么区别?
它与 Azure Pipelines YAML 中 trigger
的 batch
选项有什么关系?
trigger:
batch: 'true'
branches:
include:
- main
How does it relate to the batch option of trigger in Azure Pipelines YAML ?
如文档 Push trigger 所述:
trigger:
batch: boolean # batch changes if true; start a new build for every push if false (default)
解释:
构建批处理将进行多次提交并一次性构建它们,而不是将每个提交作为一个单独的构建排队,这会延长构建的总时间。如果您在 Azure Pipelines 中构建代码并且经常发现自己在等待排队的构建。您可能会发现启用构建批处理很有用。
因此,我们现在可以了解该文档中的状态 start a new build for every push if false (default)
。这意味着如果我们将此批处理选项的值设置为 false,它将为每个推送(提交).
这相当于我们在经典模式下的在构建过程中批量更改选项: