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

问题描述

我已经开始使用多阶段流水线进行一些测试,以便能够将流水线作为代码,但是考虑到我们也有Release流水线,以及多路流水线,我对流水线的使用有些困惑舞台流水线目前可以在门和多个环境中完成发布流水线的工作,只是在我希望的基于代码的流水线中.

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

解决方案

在这里,非常同意iberodev和Daniel的任命, YAML是未来.基于大多数开发人员和用户, YAML 是我们在最近的sprint中进行开发工作的重点.

但是,现在,基于它们的功能支持来选择使用需求.


  • 通过多阶段使用YAML:

通常,我们建议您将YAML多阶段使用.我们已经为YAML中的大多数UI功能提供了支持,包括管道资源,服务器作业等.

此外,YAML仍然具有一些传统ui管道不具备的功能,例如 Environments 是YAML独有的功能,策略作业,作业输出,模板等.这些都仅支持YAML.

此外,这是我们的最新的YAML功能公告文档,并且一旦将新功能投入产品,我们仍将保持此文档更新.如果在本文档中描述了您在实际使用中需要的功能.我强烈建议您使用多阶段管道.


  • 使用经典UI的发布管道:
但是,如前所述,我们正在开发但不支持YAML中的所有功能.例如,经典UI发布管道中有一个最关键的功能 Gate ,它仍在开发中:阶段之间的自动检查(门).

当您的团队中需要在YAML中未添加的此功能或其他功能时,此时,最好将Release管道与经典UI结合使用,以确保产品安全.

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?

解决方案

Here, very agree iberodev and Daniel's appointment, YAML is the future. Based on most developers and users, YAML is the focus of our development work in recently sprints.

But now, the choice of your use need based on the feature support of them.


  • Using YAML with multi-stage:

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

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

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


  • Using Release pipeline of Classic UI:

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

When this or other feature which haven't added in YAML is necessary in your team, at this time, you'd better use Release pipeline with classic UI for your product security.

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

08-23 20:24