Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
222 views
in Technique[技术] by (71.8m points)

Deployment can't be scheduled in Azure DevOps

Release pipelines don't allow us to schedule one-off releases. can schedule releases on a regular cadence but that doesn't meet the requirement.

In short, looking for option (currently we have approve) where deployer can choose when to hit to prod.

question from:https://stackoverflow.com/questions/65923399/deployment-cant-be-scheduled-in-azure-devops

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There are 2 types of scheduled trigger on release pipeline:

  1. Scheduled release triggers: Triggers a new release at specific times.

    If you want to trigger a release at a specific time instead of every build triggers a release, you can use the Scheduled release triggers and disable Continuous deployment triggers. With this way, by default the scheduled release will always use the latest build artifacts for deployments.

    In addition, if you have enabled the option "Only schedule releases if the source or pipeline has changed", after previous scheduled release, the release will be triggered at the specific times only when the source or the pipeline definition has updated. Otherwise, the release will not be triggered even if the specific times reach. If you want the scheduled release will be always triggered at the specific times, you can disable this option.

    enter image description here

  2. Scheduled stage triggers: Trigger a new deployment to the stage at a specific time, after a new release is triggered (After release), or the dependent previous stages are completed (After stage) in the release.

    When the scheduled deployment to the stage is triggered at the specific time, the deployment will use the build artifacts that triggered the current release, not always the latest build artifacts.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...