[英]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.