Azure DevOps-是否可以在特定的日期和时间安排发布? [英] Azure DevOps - Is it possible to schedule a release for a specific day and time?

查看:173
本文介绍了Azure DevOps-是否可以在特定的日期和时间安排发布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Azure-DevOps Release管道来自动化部署.

I am using Azure-DevOps Release pipelines to automate deployments.

我希望将发布创建安排在特定的日期和时间.

I would like to schedule release creation to occur at a specific date and time.

但是根据下面的屏幕截图,只能选择一周中的几天.而且您不能将触发器指定为仅一次.

But according to the screenshot below, only days of the week can be selected. And you can't specify the trigger as one time only.

这是一个问题,因为触发器将导致在指定的日期每周发生一次释放,并且我们必须记住每次释放后都要关闭触发器,直到准备好再次释放为止.

This is a problem because the trigger will causes a release to occur every week on the specified days, and we will have to remember to turn the trigger off after every release, until we are ready to release again.

VSTS中的当前功能是否可以设置一个特定的日期,并且只发布一次?

Is it possible with the current functionality in VSTS to set a specific date, and only release once?

可能的解决方法?

推荐答案

我找到了一种非常简单的方法来实现一次性计划发布.

I’ve found a really simple way to achieve one-off scheduled releases.

只需在市场上使用VSTS CLI工具...

Just use the VSTS CLI tool, in the marketplace...

https://marketplace.visualstudio.com/items?itemName=ms -vsts.cli

它是由MS发布的,从命令行开始构建和发布非常容易.

It’s published by MS and it’s super easy to kick off builds and releases from the command line.

只需使用任务计划程序即可.

Just use task scheduler.

这篇关于Azure DevOps-是否可以在特定的日期和时间安排发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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