VSTS CI/CD定义为脚本 [英] VSTS CI/CD definition as scripts

查看:103
本文介绍了VSTS CI/CD定义为脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在构建基于微服务的体系结构,并且拥有50条奇数CI和50条奇数CD管道.有没有办法编写CI/CD Build和Release定义的脚本?我们希望这是一个可重复的过程,并且不希望它留给我们的DevOps工程师,因为它容易出错.请注意,我不是在谈论ARM(我们已经在使用它).有没有办法做上面的事情?

We are building a Microservices based architecture and we are having 50 odd CI and 50 odd CD pipelines. Is there a way to script the CI / CD Build and Release definitions? We want this to be a repeatable process and do not want to leave it to our DevOps engineer(s) as it is prone to errors. Please note that I am not talking about ARM (which is already being used by us). Is there a way to do the above?

推荐答案

对于内部版本,您可以使用当前处于预览状态的YAML内部版本.

For builds, you can use YAML builds, which are currently in preview.

对于发行版,还没有等效的版本.

For releases, there's nothing equivalent yet.

您始终可以使用REST API将构建和发布定义提取为JSON,对其进行源代码控制,然后创建一个持续交付管道以在源代码管理中的定义更改时更新它们.

You could always use the REST APIs to extract the build and release definitions as JSON, source control them, and then create a continuous delivery pipeline to update them when the definitions in source control change.

这篇关于VSTS CI/CD定义为脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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