Tau*_*qir 5 azure-pipelines azure-pipelines-yaml
我希望管道每六个月触发一次。这是代码扫描的合规性要求。所以我制定了一个时间表:
schedules:
- cron: "0 0 1 */6 *"
branches:
include:
- master
always: true
Run Code Online (Sandbox Code Playgroud)
但是这个管道在每次提交到 master 时都会触发。据我了解,不应该。难道我没理解预定的触发器吗?
根据我的测试,我可以重现类似的问题。
当我向 master 提交更改时,构建原因是 CI 触发器。
trigger: none您可以尝试在 yaml 文件中添加。然后你可以禁用 CI 触发器。
这是一个例子:
trigger: none
schedules:
- cron: "0 0 1 */6 *"
branches:
include:
- master
always: true
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1143 次 |
| 最近记录: |