首页 > 解决方案 > 如何正确安排 Azure Devops Yaml cron 管道?

问题描述

我有一个 yaml 管道,旨在每天午夜运行。

以下是时间表的编写方式:

schedules:
- cron: "0 0 * * *"
  displayName: Daily midnight run
  branches:
    include:
    - master
  always: true

但是当我查看日志时,我发现管道没有按预期在午夜运行。

我检查了几次语法,但没有发现任何错误。

我目前的解决方法是使用 GUI 调度程序覆盖我的 Yaml 定义。

标签: azure-devopscroncontinuous-integrationyaml

解决方案


推荐阅读