是否有工具可以在本地验证Azure DevOps管道? [英] Is there a tool to validate an Azure DevOps Pipeline locally?

查看:74
本文介绍了是否有工具可以在本地验证Azure DevOps管道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更改YAML定义的Azure DevOps管道时,将更改推送到分支只是为了查看构建失败并出现解析错误(有效的YAML,但管道定义无效),然后尝试尝试-和错误解决了这个问题.

When making changes to YAML-defined Azure DevOps Pipelines, it can be quite tedious to push changes to a branch just to see the build fail with a parsing error (valid YAML, but invalid pipeline definition) and then try to trial-and-error fix the problem.

最好通过在本地分析和验证管道定义来缩短反馈回路;从根本上讲,这是一个关于Azure管线中可以定义的各种资源等知识的短毛绒玩具.但是,我找不到能做到这一点的任何工具.

It would be nice if the feedback loop could be made shorter, by analyzing and validating the pipeline definition locally; basically a linter with knowledge about the various resources etc that can be defined in an Azure pipline. However, I haven't been able to find any tool that does this.

在某处有这样的工具吗?

Is there such a tool somewhere?

推荐答案

您可以使用其YAML测试功能在本地运行Azure DevOps代理.

You can run the Azure DevOps agent locally with its YAML testing feature.

使用 Visual Studio Team Services代理在您的计算机上安装代理本地计算机,并使用代理本地YAML测试代理中可用的功能.

Use Visual Studio Team Services Agent to install an agent on your local machine and use the agent local YAML testing feature that is available within the agent.

这应该使您非常接近期望的反馈类型.

This should get you very close to the type of feedback you would expect.

希望这会有所帮助.

这篇关于是否有工具可以在本地验证Azure DevOps管道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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