简体   繁体   English

如何在 azure Devops 中的 2 个构建管道之间创建依赖关系并将工作项链接到构建管道?

[英]How to create dependencies between 2 build pipelines in azure Devops and link a work item to build pipeline?

For example: 2nd build pipeline should be dependable on 1st build pipeline.例如:第二个构建管道应该依赖于第一个构建管道。 Work item should relate to build pipeline for keeping track.工作项应与构建管道相关,以便跟踪。

How to create dependencies between 2 build pipelines in azure Devops and link a work item to build pipeline?如何在 azure Devops 中的 2 个构建管道之间创建依赖关系并将工作项链接到构建管道?

There is an option Build Completion under Triggers in your build definition:在构建定义中的触发器下有一个构建完成选项:

Large products have several components that are dependent on each other .大型产品有几个相互依赖的组件。 These components are often independently built.这些组件通常是独立构建的。 When an upstream component (a library, for example) changes, the downstream dependencies have to be rebuilt and revalidated.当上游组件(例如库)发生更改时,必须重新构建和重新验证下游依赖项。 Teams typically manage these dependencies manually.团队通常手动管理这些依赖项。

So, we could use this option to set up dependencies.因此,我们可以使用此选项来设置依赖项。

And there is another option Automatically link new work in this build under Options in your build definition, which could use to track the related workitems.在构建定义中的选项下还有另一个选项自动链接此构建中的新工作,可用于跟踪相关工作项。

As test, I created a pipeline nullTest which depend on nullTest2 :作为测试,我创建了一个依赖于nullTest2 nullTest

在此处输入图像描述

And enable the option Automatically link new work in this build for those two pipelines, after the completion of the construction pipeline nullTest2 , the nulltest pipeline is triggered:并为这两个管道启用选项Automatically link new work in this build在构建管道nullTest2完成后,将触发nulltest管道:

在此处输入图像描述

Update:更新:

Could you give me a step wise procedure how to associate the work item?你能给我一个逐步的程序如何关联工作项吗?

Associate the workitem to the pipeline, you just need add associate the workitems when you submit the changes:将工作项关联到管道,您只需在提交更改时添加关联工作项:

在此处输入图像描述

Hope this helps.希望这可以帮助。

暂无
暂无

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

相关问题 Azure DevOps中构建管道失败时如何添加相关工作项? - How to add a related work item when the build pipeline fails in Azure DevOps? 如何在 Azure Devops 中为多模块 maven 创建构建管道 - How to create a build pipeline for multi-module maven in Azure Devops Azure Devops - YAML 发布管道 - 如何使用下拉列表 select 构建管道中的特定工件 - Azure Devops - YAML Release Pipelines - How to select a specific artefact from a build pipeline using a dropdown list 是否可以在Azure DevOps中创建多个类似类型的生成管道? - Is it possible to create multiple build pipelines of similar type in Azure DevOps? Azure DevOps Pipelines:使用当前内部版本号创建文本文件 - Azure DevOps Pipelines: Create a text file with the current build number 如何在 Azure DevOps 管道中管理构建工件? - How build artifacts are managed in Azure DevOps pipeline? Azure DevOps 中的构建管道和发布管道有什么区别? - Whats the difference between a build pipeline and a release pipeline in Azure DevOps? Azure Devops 构建管道:当 PR 没有附加任何工作项时,CI 触发器无法在 PR 合并到分支 - Azure Devops build pipeline: CI triggers not working on PR merge to a branch when there is no work item is attached with the PR 是否可以在 Azure 数据工厂的 Azure DevOps 中创建构建管道 - Is it possible to create build pipeline in Azure DevOps for Azure Data factory Azure Devops 管道构建参数 - Azure Devops Pipeline Build Parameters
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM