但是,当启用多级管道时,您还可以使用构建" YAML管道来部署您的应用程序(您可以看到不再有构建"选项卡,而是管道").缺点是您没有该发行版中存在的所有功能,例如批准,登门手续等,但是您可以在路线图,Microsoft正在对此进行开发,并且该功能也将在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文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-04 11:26
查看更多