如何在Azure Dev Ops中编辑视图并编辑发布管道的YAML文件? [英] How do I edit view and edit the YAML file for the Release Pipeline in Azure Dev Ops?

查看:119
本文介绍了如何在Azure Dev Ops中编辑视图并编辑发布管道的YAML文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过修改管道YAML文件在Azure Dev Ops上成功构建了代码,但是无法将工件成功部署到IIS Server.创建部署的唯一方法是使用其不愉快的UI.

我了解到,通过启用多管道预览功能,可以查看和编辑YAML文件.不幸的是,它不起作用.您可以编辑构建脚本,但不能编辑发行脚本.我试图在主管道YAML文件中添加部署任务,但是它既没有执行,也没有显示在发行版部分.

解决方案

Azure DevOps中的"发布"部分仍然仅在UI中,您不能在YAML中使用它.

但是,当启用多级管道时,您还可以使用构建" YAML管道来部署您的应用程序(您可以看到不再有构建"选项卡,而是管道").

缺点是您没有该发行版中存在的所有功能,例如批准,登门手续等,但是您可以在这篇文章关于如何使用多阶段YAML进行构建和部署.

Microsoft的另一个很好的教程,可在此处.

I've successfully built my code on Azure Dev Ops by modifying the pipeline YAML file, but I have been unable to successfully deploy the artifact to my IIS Server. The only way to create a deployment is by using its unpleasant UI.

I've read that by turning on a multi-pipelines preview feature, you can view and edit the YAML file. Unfortunately, it doesn't work. You can edit the build scripts, but not the release ones. I tried to add deployment tasks in the main pipeline YAML file, but it neither executes or shows up in the releases section.

解决方案

The "Release" section in Azure DevOps is still only in the UI, you can't use it in YAML.

But when you enable the multi-stage pipelines you can use the "build" YAML pipelines also to deploy your app (you can see that no "Builds" tab anymore, there is "Pipelines").

The downside is that you don't have all the features that exist in the release, like approvals, gates, etc. but you can see in the roadmap that Microsoft work on it and the features will be available also in the YAML.

You can check this article on how to use the multi-stage YAML for build & deployment.

Another good tutorial from Microsoft available here.

这篇关于如何在Azure Dev Ops中编辑视图并编辑发布管道的YAML文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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