为什么我的 azure pipeline cron 作业不是 运行?
Why is my azure pipeline cron job not running?
我正在尝试通过使用 yaml 而不是 azure 管道调度来获取 cron 调度 运行ning。
这是我的 YAML:
trigger: none
pr: none
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build when changes have been pushed
always: true
branches:
include:
- branch1
- branch2
variables:
- group: BranchVariables
首先 运行 每次有人发布 PR 时,发现我必须添加“pr: none”。现在我不知道缺少什么。我可能错过了什么? ms 文档很少,我已经阅读了有关此问题的所有相关主题。
提前致谢!
更新:
当我想检查管道上的时间表时,它没有显示任何内容,而且我无法同步
当我编辑管道时,我在主 b运行ch 上获得了当前的 yaml 版本,我们不再使用它,它不是默认的 b运行ch。对于我在 yaml b运行ches 属性.
中包含的两个 b运行ches,管道应该只 运行
今晚管道仍然没有 运行,我现在猜测带有时间表的 yaml 也必须检入主 b运行ch。我发现可以为每个管道设置默认的 b运行ch,现在我更改了它,最终可以同步并查看时间表。对我来说仍然神秘的是,我必须在时间表出现之前将默认管道 b运行ch 添加到包含的 b运行ches 中。我现在只使用一个包含的 b运行ch.
您的管道似乎一切正常。我用这段代码测试了它:
trigger: none
pr: none
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build when changes have been pushed
always: true
branches:
include:
- branch1
- branch2
- master
variables:
- group: BranchVariables
steps:
- script: echo "hello $(test)"
请记住,您有特定分支的过滤器,因此请确保 branch1 或 branch2 存在。
我创建了一个新分支 branch1
并更改为管道的默认分支和十个同步计划:
我正在尝试通过使用 yaml 而不是 azure 管道调度来获取 cron 调度 运行ning。
这是我的 YAML:
trigger: none
pr: none
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build when changes have been pushed
always: true
branches:
include:
- branch1
- branch2
variables:
- group: BranchVariables
首先 运行 每次有人发布 PR 时,发现我必须添加“pr: none”。现在我不知道缺少什么。我可能错过了什么? ms 文档很少,我已经阅读了有关此问题的所有相关主题。
提前致谢!
更新:
当我想检查管道上的时间表时,它没有显示任何内容,而且我无法同步
当我编辑管道时,我在主 b运行ch 上获得了当前的 yaml 版本,我们不再使用它,它不是默认的 b运行ch。对于我在 yaml b运行ches 属性.
中包含的两个 b运行ches,管道应该只 运行今晚管道仍然没有 运行,我现在猜测带有时间表的 yaml 也必须检入主 b运行ch。我发现可以为每个管道设置默认的 b运行ch,现在我更改了它,最终可以同步并查看时间表。对我来说仍然神秘的是,我必须在时间表出现之前将默认管道 b运行ch 添加到包含的 b运行ches 中。我现在只使用一个包含的 b运行ch.
您的管道似乎一切正常。我用这段代码测试了它:
trigger: none
pr: none
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build when changes have been pushed
always: true
branches:
include:
- branch1
- branch2
- master
variables:
- group: BranchVariables
steps:
- script: echo "hello $(test)"
请记住,您有特定分支的过滤器,因此请确保 branch1 或 branch2 存在。
我创建了一个新分支 branch1
并更改为管道的默认分支和十个同步计划: