Azure devops Azure DevOps夜间构建-计划\cron语法
我正在尝试在构建管道YAML文件中设置每天晚上的构建时间为00:30。 我在尝试生成时遇到以下错误:Azure devops Azure DevOps夜间构建-计划\cron语法,azure-devops,azure-pipelines,Azure Devops,Azure Pipelines,我正在尝试在构建管道YAML文件中设置每天晚上的构建时间为00:30。 我在尝试生成时遇到以下错误: 格式不正确的cron语法:“00 30 00***' 这就是我尝试过的: schedules: - cron: '00 30 00 * * *' 我试过: schedules: - cron: '0 30 0 * * *' 我正在对照以下内容检查我的工作(但不完全确定该工具是否完美) Microsoft文档:有两种可能: 双引号代替单引号(?) 五个cron字段,而不是六个 : 为了便于参考
格式不正确的cron语法:“00 30 00***'
这就是我尝试过的:
schedules:
- cron: '00 30 00 * * *'
我试过:
schedules:
- cron: '0 30 0 * * *'
我正在对照以下内容检查我的工作(但不完全确定该工具是否完美)
Microsoft文档:有两种可能:
mm HH DD MM DW
\ \ \ \ \__ Days of week
\ \ \ \____ Months
\ \ \______ Days
\ \________ Hours
\__________ Minutes
因此,每天00:30构建示例:
schedules:
- cron: "30 0 * * *"
displayName: Daily 00:30 build
branches:
include:
- master
- releases/*
exclude:
- releases/ancient/*
Cron描述符链接交叉检查:
刚刚尝试,双引号仍然会导致相同的错误:
验证cron输入时出错。格式不正确的cron语法:“00 31 00***”。
(更改了时间以确保在web ui中看到我的更改)@BrienFoss我想可能是额外的星号(总共应该是五个字段)谢谢!我删除了首字母0
,如上面的示例所示。
schedules:
- cron: "30 0 * * *"
displayName: Daily 00:30 build
branches:
include:
- master
- releases/*
exclude:
- releases/ancient/*