我想要实现的目标:仅在 cron 计时器上运行管道,并在计时器上运行它,始终忽略以前的运行状态
trigger: none # No CI build
pr: none # Not for pull requests
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- integration-tests
always: true
我目前拥有的:
- 失败的管道按预期工作
- 成功的管道在首次成功运行后停止工作。手动触发运行失败时甚至不会启动。
- 所有管道都有正确的“计划运行”选项卡。
- 每个管道都没有通过 UI 配置任何触发器/计划
我做错了什么?
最佳答案
您可以查看此常见问题解答:
I see the planned run in the Scheduled runs panel. However, it does not run at that time. Why?
- “计划运行”面板显示所有可能的计划。但是,除非您对代码进行了真正的更新,否则它可能不会真正运行。要强制计划始终运行,请确保您已在 YAML 管道中设置always 属性,或选中始终在经典管道中运行的选项。
还有这个My YAML schedules were working fine. But, they stopped working now. How do I debug this?
根据描述,您可以对 YAML 文件进行一些细微的更改,然后将更新推送到您的存储库。
您还可以尝试创建新的 YAML 版本并检查结果。
关于azure-devops - 始终为 : true behaviour issue in Azure DevOps pipelines,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66346522/