简体   繁体   English

Azure DevOps 发布管道

[英]Azure Devops Release Pipeline

I am trying to build a YAML release pipeline in Azure devops.我正在尝试在 Azure devops 中构建 YAML 发布管道。 I already have YAML build pipeline.我已经有了 YAML 构建管道。 I can see that when i do a YAML build Azure devops is making azure-pipelines.yml which is checked into a master branch of code repo.我可以看到,当我进行 YAML 构建时,Azure devops 正在制作 azure-pipelines.yml,它被检入代码存储库的主分支。 Now if I want a separate YAML release (CD) pipeline how can I do it, because when click release there is YAML creation option.现在,如果我想要一个单独的 YAML 发布 (CD) 管道,我该怎么做,因为单击发布时有 YAML 创建选项。

释放选项 . . 不发布 YAML 选项

Or do i have to add release to the existing azure-pipelines.yml which already has the build.或者我是否必须向已有构建的现有 azure-pipelines.yml 添加发布。 In this case my build and release is all in one file.在这种情况下,我的构建和发布都在一个文件中。 how can i then control the release and in some case reject the releases?那么我如何控制发布并在某些情况下拒绝发布? What is the recommended approach?推荐的方法是什么? A bit lost in this YAML CI/CD.在这个 YAML CI/CD 中有点迷失。 Please advise.请指教。

You'll need to enable multi-staged pipelines from the preview features.您需要从预览功能启用多阶段管道。 With them, you'll create just one yaml pipeline for both build and release.有了它们,您只需为构建和发布创建一个 yaml 管道。 Do note that multi-stage pipelines still lack some of the features available in editor-based release pipelines.请注意,多阶段管道仍然缺乏基于编辑器的发布管道中可用的一些功能。

https://docs.microsoft.com/en-us/azure/devops/project/navigation/preview-features?view=azure-devops https://docs.microsoft.com/en-us/azure/devops/project/navigation/preview-features?view=azure-devops

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM