Azure DevOps部署另一个阶段时取消阶段的部署 [英] Azure DevOps Cancel deployment of stage when deploying another stage

查看:60
本文介绍了Azure DevOps部署另一个阶段时取消阶段的部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前通过以下方式拥有Azure DevOps版本设置:

We currently have our Azure DevOps release setup in the following way:

我要完成的工作是,如果9:00 AM部署触发,则取消2:00 PM部署;如果2:00 PM部署触发,则取消9:00 AM部署,因为我们不这样做.确实希望两次部署相同的代码,或者甚至第二天也要部署前一天的代码.

What I'm trying to accomplish is to cancel the 2:00 PM deployment if the 9:00 AM deployment triggers, as well as cancel the 9:00 AM deployment if the 2:00 PM deployment triggers since we don't really want to deploy the same code twice, or even deploy the previous day's code the following day.

有人知道在Azure DevOps中是否可以做到这一点吗?

Does anyone know if a way to do this in Azure DevOps?

我已经做了很多搜索扩展的工作,等等,以查看是否可以找到任何东西,但是到目前为止还没有成功.任何帮助将不胜感激.

I've done a lot of searching for extensions, etc. to see if I can find anything, but so far have not been successful. Any help would be greatly appreciated.

推荐答案

此外,您可以尝试将Release Gates与Rest Api或Azure Functions一起使用.您可以在此处找到示例:

Additionally, you may try to use Release Gates with Rest Api or Azure Functions. You can find example here: Azure DevOps release gates with Azure Functions, PowerShell and VS Code

这篇关于Azure DevOps部署另一个阶段时取消阶段的部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆