【发布时间】:2023-03-14 14:33:01
【问题描述】:
在 Azure DevOps YAML 中,我可以指定管道基于计划或触发器运行:
trigger:
batch: true
branches:
include:
- develop
schedules:
- cron: "0 0 * * *"
displayName: Daily 9pm
branches:
include:
- develop
在 YAML 中,如何检测管道是否由于计划而不是触发器而运行?我可以在条件中使用变量吗?我想要这个的原因是我想安排一个通宵部署,然后运行端到端测试。
【问题讨论】:
标签: azure-devops yaml