如何在 Azure Dev Ops 中为 Release Pipeline 编辑视图和 YAML 文件? [英] How do I edit view and edit the YAML file for the Release Pipeline in Azure Dev Ops?

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

问题描述

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

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.

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

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.

推荐答案

Azure DevOps 中的Release"部分仍然只在 UI 中,你不能在 YAML 中使用它.

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

但是当您启用多阶段管道时,您也可以使用构建"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").

缺点是您没有版本中存在的所有功能,例如审批、门等,但您可以在 路线图 表示微软正在研究它,这些功能也将在 YAML 中提供.

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.

您可以查看这篇文章 关于如何使用多阶段 YAML 进行构建 &部署.

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

Microsoft 提供的另一个很好的教程此处.

Another good tutorial from Microsoft available here.

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

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