2
votes

We use on-prem Azure DevOps Server 2019.

Observe the following release pipeline: enter image description here

Notice the last stage - prod. No code was released to it for some time, but now I do want to release the latest there. But, right now I am forced to release and immediately cancel all the versions in the middle, because this is seemingly the only way to release the latest.

Is this the only way?

2
Go to the latest release, hover the mouse on the prod stage and click Deploy. Will this releases the latest to prod?Levi Lu-MSFT
We redeployed only today. Let us accumulate a few omitted releases and then we will check.mark
Yes, it works. Can you arrange it as an answer? It is a mystery to me why it is not available immediately.mark
Great it worked. I posted the steps in below answer.Levi Lu-MSFT
I was wrong and it does not work. I do not know what confused me previously, but it definitely does not work when there is pre-deployment approval.mark

2 Answers

3
votes

I know this has been answered but i thought it might be worthwhile to point out that you can actually always ensure that you only promote the latest release by ensuring that the Deploy latest and cancel others located on the deployment queue settings section of your pipeline is checked/selected on your prod release stage https://i.stack.imgur.com/rblr4.png

0
votes

The detailed steps is listed as below:

Select the release pipeline from Releases under Pipelines of your Azure devops project.

enter image description here

Select the latest release from the Releases history. Hover the mouse on the prod stage and click Deploy to deploy the latest release to prod environment.

enter image description here