我有以下 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 點運行。還有什么我需要做的嗎?
uj5u.com熱心網友回復:
好的,我想我想通了。默認情況下,DevOps 在所有分支上都包含一個 CI/CD 觸發器。您需要禁用此功能:
trigger: none
schedules:
- cron: "0 6 * * Mon"
displayName: Monday Morning World Build
branches:
include:
- main
我發現完全沒有檔案或博客提到這一點,這很煩人。我猜每個人都認為你想要 CI/CD和預定的觸發器。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/528890.html
