如何安排本地Azure DevOps构建每5分钟运行一次? [英] How to schedule an on-premise Azure DevOps build to run every 5 minutes?

查看:115
本文介绍了如何安排本地Azure DevOps构建每5分钟运行一次?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没关系,我有一个案例,即构建需要每5分钟运行一次.本地安装不支持YAML中的计划.

Never mind the rationale, I have a case where a build needs to run every 5 minutes. On-premise installation does not support schedules in the YAML.

那么,我们该怎么做呢?我可能可以使用REST Api,但这很糟糕,因为似乎我创建了一次性脚本或针对非常简单的计划类型的脚本.似乎需要构建一个可重用的解决方案,该解决方案通常可用于其他构建.因此,除了专注于我的业务之外,我还需要侧重于弥补Azure DevOps本地版本的不足.

So, how do we do it? I can probably use the REST Api, but that sucks, because it seems either I create a one-off script or a script for very simple type of schedules. Building a reusable solution, that could be used in general for other builds seems to be involved. So, instead of concentrating on my business I need to go sideways and cover for the deficiencies of the on-premise version of Azure DevOps.

我想知道是否有更好的方法.

I wonder if there is a better way.

推荐答案

了解您的担忧.但是,本地TFS服务器目前不支持此功能.

Understand your concern. However, this is not supported at present with on-premise TFS sever.

用于定义基于时间的构建触发器的 UI 不够灵活.它可以仅支持一周中的固定时间.

The UI for defining time-based build triggers isn't flexible enough. It can only support fixed times on days of the week.

就像您在评论中指出的那样,我们需要每5分钟运行一次构建,这需要我们创建288个时间表,这很繁琐.

Just as you have pointed out in the comment, we have a need to run a build every 5 minutes which requires us to create 288 schedules which is tedious.

实际上,这已经是用户的声音了.

Actually, this has already been a user voice.

计划的构建-更灵活的定时配置

https://developercommunity.visualstudio .com/idea/365630/scheduled-builds-more-flexible-timing-configuratio.html

多人评论并回声.进入市场后,还没有找到合适的解决方法.任何不便敬请谅解.您可以监视上述用户语音的状态.

Multiple persons commented and echoed. After go through the marketplace, haven't found a pretty appropriate workaround. Sorry for any inconvenience. You could monitor the status of above user voice.

这篇关于如何安排本地Azure DevOps构建每5分钟运行一次?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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