Azure Devops 多级管道或发布,何时使用什么? [英] Azure Devops multistage pipeline or release, when to use what?

查看:21
本文介绍了Azure Devops 多级管道或发布,何时使用什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用多级管道进行一些测试,以便能够将管道作为代码,但考虑到我们也有发布管道,我对管道的使用感到有些困惑,而且多级管道阶段管道目前可以在门和多个环境中完成发布管道的工作,只是在我更喜欢的基于代码的管道中.

I've started doing some testing using multi-stage pipelines to be able to have the pipeline as code, but I'm getting a bit confused about the usage of the pipeline considering we have Release pipeline as well, and multi-stage pipeline currently can do the release pipeline's job with gates and multiple environments, just in a code based pipeline which I would prefer.

我的问题是什么时候应该使用它们中的每一个?

My question is when should each of them be used?

推荐答案

应该什么时候使用它们?

When should each of them be used?

我非常同意 iberodev 和 Daniel 的评论,即YAML 是未来.基于大多数开发者和用户的需求,YAML 一直是我们最近 sprint 开发工作的重点.

I strongly agree with iberodev's and Daniel's comments, that YAML is the future. Based on the needs of most developers and users, YAML has been the focus of our development work in recent sprints.

但就目前而言,您应该根据每个支持的功能选择使用什么.

But as of now, your choice of what to use should be based on the features supported by each.

  • 在多阶段使用 YAML:

大多数情况下,我们建议您在多阶段管道中使用 YAML.我们提供了对 YAML 中大部分 UI 功能的支持,包括管道资源、服务器作业等.

Most of time, we recommend you use YAML in multi-stage pipelines. We have provided support for most of the UI features in YAML, including pipeline resource, server job and etc.

此外,YAML 仍然具有一些经典 ui 管道不具备的功能,例如环境、策略作业、作业输出、模板等.这些都仅在 YAML 中受支持.

Also, YAML still has some features that classic ui pipelines don't, such as Environments, Strategies jobs, job outputs, templating and etc. These are all only supported in YAML.

此外,这是我们的最新的 YAML 功能公告文档,我们仍在保持此文档更新,因为我们将新功能添加到产品中.如果您需要投入实际使用的功能在本文档中有描述,我强烈建议您使用多阶段流水线.

In addition, this is our latest YAML feature announcement document and we are still keeping this doc update as we put new features into the product. If the features you need to put into actual use are described in this document, I strongly suggest you use Multi-stage pipeline.

  • 使用经典 UI 的发布渠道:

但是,正如我之前提到的,我们正在开发但尚未支持 YAML 中的所有经典功能.例如,经典 UI 发布管道中的一项关键功能 Gate 仍在开发中:阶段之间的自动检查(门).

BUT, as I mentioned previously, we are developing but haven't supported all of the classic features in YAML. For example, one key feature in classic UI release pipelines, Gate, it is still in progress in development: Automated checks (gates) between stages.

当您的团队需要此功能或 YAML 中未添加的其他功能时,为了产品安全,您最好使用带有经典 UI 的发布管道.

When this or other features which haven't been added in YAML are necessary for your team, then you're better off using Release pipeline with classic UI for your product security.

这篇关于Azure Devops 多级管道或发布,何时使用什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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