我正在尝试使用 yaml 文件部分中引用的 cron 作业作为我的 CircleCI CI 系统的一部分:
我希望使用该0/10 * * * *
格式每 10 分钟运行一次工作,但我得到:
配置不符合架构
那么如何0/10
在 yaml 文件中使用 cron 呢?
使用有效的 cron 表达式:
https://crontab.guru/#0/10_*_*_*_*
我明白了
Config does not conform to schema:
{:workflows {:hourly {:triggers [{:schedule {:cron (not (:circleci.specs.cron/posix-expr \"0/10 * * * *\"))}}]}}}
我尝试了各种格式,例如
cron: "0/10 * * * *"
cron: 0/10 * * * *
cron: "0\/10 * * * *"
cron: 0\/10 * * * *
但没有一个对允许斜线有效。
其余部分的上下文:
hourly:
triggers:
- schedule:
cron: "0/10 * * * *"
filters:
branches:
only:
- master
- circleci-project-setup: