How to configure an Azure DevOps release to complete all its stages before starting a new one

╄→尐↘猪︶ㄣ 提交于 2021-01-28 05:08:24

问题


I am setting up an Azure DevOps release pipeline with three different stages. As shown in the following screenshot a new release has already started even though the preceding release is still running.

Is there a way to configure a release to complete all its stages before the next in the queue is getting started?


回答1:


For more readable, I will talk based on the pic you shared in the question.

In fact, in the release which has multiple stages, the stages are independent of each other. As you can see about the task job defined for different stages, we can know that the execution for different stages are running independently.

The only connection between each stages is the order of execution which determined by After release and After stage.

And also, as the pic mention below:

As you can see that once the Stage1 of Releae-152 execution finished, the Stage1 of Realse-153 will be executed follow by. As I mentioned in previous comment, only the same execution deployed to the same stage can affect each other. For stage1, the Release-153 can override the stage1 in Release-152.

Since there has several release pipeline in queued, as the default, the server will executed the deployment which in same stage firstly. That's why you see the Stage1 of Releae-153 running firstly than Stage2 of Releae-152.



来源:https://stackoverflow.com/questions/57405813/how-to-configure-an-azure-devops-release-to-complete-all-its-stages-before-start

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!