gpt4 book ai didi

azure - 只要主分支发生变化,DevOps Pipeline 就会运行,而不是按照期望的时间表运行

转载 作者:行者123 更新时间:2023-12-03 06:43:23 25 4
gpt4 key购买 nike

我有以下 DevOps 管道:

schedules:
- cron: "0 6 * * Mon"
displayName: Monday Morning World Build
branches:
include:
- main

stages:
- template: ./pipeline-review.yml

... other stuff that's probably not important

但是,只要 main 分支发生更改,此管道就会自动运行。我想要的是这个管道每周一早上 6 点运行。我还需要做什么吗?

最佳答案

好吧,我想我已经明白了。默认情况下,DevOps 在所有分支上都包含 CI/CD 触发器。您需要禁用此功能:

trigger: none

schedules:
- cron: "0 6 * * Mon"
displayName: Monday Morning World Build
branches:
include:
- main

令人恼火的是,我发现完全没有文档或博客提到这一点。我想每个人都假设您想要 CI/CD 和预定的触发器。

关于azure - 只要主分支发生变化,DevOps Pipeline 就会运行,而不是按照期望的时间表运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74323636/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com