我正在尝试在Azure DevOps中创建一个管道,无论git分支上是否有变化,它都会每月触发。这是我的代码,但是没有执行
trigger: none
# YAML file in the main branch
schedules:
- cron: "0 0 1 * *"
displayName: Monthly build
branches:
include:
- master
- development
always: true
你的表达式应该像0 0 1 */1 *
,意思是At 00:00 on day-of-month 1 in every month.
。请在cron guru上检查这个表达式。
trigger: none
# YAML file in the main branch
schedules:
- cron: "0 0 1 */1 *"
displayName: Monthly build
branches:
include:
- master
- development
always: true