Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cancel previous release azure pipeline yaml

When creating a release pipeline via the UI (Release) in Azure Devops you have the option cancel previous release.

Deploy latest and cancel the others

How can i create this with YAML in my release pipeline, now as you can see al the previous releases are still waiting

YAML exampel

like image 970
JK84 Avatar asked Feb 13 '20 16:02

JK84


1 Answers

Cancel previous release azure pipeline yaml

For this issue ,I am afraid it is currently not supported in yaml.

From this document , we can know that: Queuing policies are not yet supported in YAML pipelines.

enter image description here

Subsequent releases setting is also part of the Deployment queue settings. So Deploy latest and cancel the others should also not be supported at present, and can only be implemented in classic pipeline.

Apart from the negative answer, I think what you want is a good idea! So I post a feature request here in DC forum. Anyone interested in this can vote for it and track it. You could also vote that suggestion ticket and share your comment there.The product team would provide the updates if they view it. Hope this helps.

like image 148
Hugh Lin Avatar answered Sep 23 '22 22:09

Hugh Lin