azure-devops - 在 Azure Devops 中复制发布管道所有阶段的更改

标签 azure-devops azure-pipelines azure-pipelines-release-pipeline

我有一个多阶段发布管道,它有大约 15 个阶段用于不同的环境。如果我对一个阶段中的其中一个步骤进行了更改,我必须手动将其复制到每个阶段。有没有一种方法可以选择多个阶段并进行更改?

最佳答案

您可以为此使用任务组:

A task group allows you to encapsulate a sequence of tasks, already defined in a build or a release pipeline, into a single reusable task that can be added to a build or release pipeline, just like any other task. You can choose to extract the parameters from the encapsulated tasks as configuration variables, and abstract the rest of the task information.

这将允许您创建一个模板并对其进行修改,并且它会在使用它的任何地方进行修改。

https://learn.microsoft.com/en-us/azure/devops/pipelines/library/task-groups?view=azure-devops

关于azure-devops - 在 Azure Devops 中复制发布管道所有阶段的更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59529307/

相关文章:

azure-devops - 在 VSTS 任务组中是否可以参数化复选框

reactjs - linux azure web 应用程序不显示我的reactjs 应用程序

docker - 为什么此 ASP.NET Core Docker 构建在 Azure Pipelines 中失败?

xml - 无发布管道中的 Azure XML 转换

azure-devops - 您可以将文件从一个 VSTS 构建代理复制到另一个吗?

azure-devops - 无法在 Azure DevOps(发布管道)中获取 Azure 容器注册表的服务连接

python-3.x - 使用 Python 3.6 使用个人访问 token 对 VisualStudioOnline REST API 进行身份验证

git - 从混合 TFVC/Git Visual Studio Online 项目中的 git 提交获取电子邮件警报

azure-devops - 为什么 VSTS Build "Visual Studio Test"步骤找不到我的 NUnit 测试?

azure-devops - TFS/VSTS vNext 构建和发布日志位置