问题描述
这是针对 pyjanitor
项目提出的问题./p>
我有一些构建管道,这些管道被拆分成多个作业,这些作业被设计为可以并行运行.但是,我注意到,即使在合并PR之后也会触发构建.因此,我的问题有两个方面:
- 是否可以触发构建以便仅检查PR?
- 仅检查PR还是一种很好的做法,还是在合并(以及运行所有测试)之后构建可能会丢失的理由?
更新:
我认为这个问题应该与,因为我的问题是在合并公关后如何禁用构建,而不是在合并之前强制构建公关.
通过查找建议的重复项,我没有找到有关如何配置我的管道YAML以在PR合并后禁用构建的任何信息.建议的分支策略"也未显示在管道"仪表板上.
如果要在合并后禁用构建-禁用提交触发器.
yaml:
触发:无
This is a question raised for the pyjanitor
project.
I have build pipelines that are split into jobs, and the jobs are designed to run in parallel. However, I noticed that the builds are triggered even after merging PRs. Hence, my question is kind of two-fold:
- Is it possible to trigger build such that we only check PRs?
- Is it even good practice to just check PRs, or is there a rationale for building after merge (and also running all the tests) that I might be missing?
Update:
I believe that this question should be distinct from the suggested duplicate because the question I have is how to disable build after PR is merged, rather than forcing a build before PR is made.
Looking through the suggested duplicate, I did not find anything about how to configure my Pipeline YAML to disable build after PR merge. The suggested "branch policies" thing also does not show up on my Pipelines dashboard.
if you want to disable build after merge - disable commit trigger.
yaml:
trigger: none
这篇关于如何仅在PR上触发合并而不在Azure管道上触发构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!