millokeller
millokeller

Reputation: 282

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

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.

Main Release

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

Upvotes: 1

Views: 1169

Answers (1)

Mengdi Liang
Mengdi Liang

Reputation: 18958

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.

enter image description here

And also, as the pic mention below:

enter image description here

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.

Upvotes: 2

Related Questions