多个yaml cron计划在Azure DevOps管道中不起作用
我有2个Cron时间表在Azure Devops中定义,但并非都受到尊重。
trigger: none
schedules:
- cron: '0 */1 * * Mon-Sat'
always: true
displayName: Run Every hour Monday to Saturday
branches:
include:
- beverly-hills-ops/matt.oconnor/904176-reactive
- cron: '0 0-11,16-23 * * Tue-Wed'
always: true
displayName: Run Every hour on Tuesday and Wednesday except 12, 13, 14 and 15
branches:
include:
- beverly-hills-ops/matt.oconnor/904176-reactive
这些是:
- 每小时每小时每小时每小时
- 每小时每小时在0-11至16-23之间每小时运行(因此不要在11-16之间进行)。
但是,它忽略了第二个条件....
https://i.sstatic.net/opdun.png“ alt =“在此处输入图像说明”>
我该如何达到此要求?
I have 2 cron schedules defined in Azure Devops but they are not both being respected.
trigger: none
schedules:
- cron: '0 */1 * * Mon-Sat'
always: true
displayName: Run Every hour Monday to Saturday
branches:
include:
- beverly-hills-ops/matt.oconnor/904176-reactive
- cron: '0 0-11,16-23 * * Tue-Wed'
always: true
displayName: Run Every hour on Tuesday and Wednesday except 12, 13, 14 and 15
branches:
include:
- beverly-hills-ops/matt.oconnor/904176-reactive
These are saying:
- Run every hour Monday to Saturday
- Run every hour Tuesday to Wednesday between 0-11 and 16-23 (Therefore don't run between 11-16).
However it is ignoring the second condition....
How can I achieve this requirement?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
微软对限制不是很具体,但请记住这一点。
但是,我认为您只是有一个Cron冲突。
尝试以下操作:
Microsoft isn't very specific about limitations but keep this in mind.
However I think you just have a cron conflict.
Try this: