本文介绍了可视化Jenkins管道或多分支管道作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我的Jenkins 2.0中的每个组件都有一个管道作业.他们都是包含许多阶段(构建,UT,IT等),因此它们作为组件的管道.
  • 这些组件以指定的顺序相互依赖,因此我使用了在构建其他项目之后进行构建"(我也尝试过 JobFanIn插件)来互相触发这些迷你管道".这就像迷你管道"的管道一样
  • I have one Pipeline job for each component in my Jenkins 2.0. All of themconsist of many stages (build, UT, IT etc.), so they're working as apipeline for a component.
  • The components are depending on each other in a specified order, so I used "Build after other projects are built" (I also tried JobFanIn Plugin) to trigger these "mini-pipelines" after each other. This works like a pipeline of "mini pipelines"

我想形象化工作之间的关系.为此,我找到了2个插件:

I'd like to visualize the relationship between the jobs. For this purpose I've found 2 plugins:

  • Delivery Pipeline Plugin
  • Build Pipeline Plugin

两者都引入了新的视图类型,但是它们都不支持管道"或多分支管道"作业类型(是在Jenkins 2.0中引入的),这些作业在视图配置页面的相关下拉列表中不可见.

Both introduce a new View type, but none of them supports the "Pipeline" or "Multibranch pipeline" job types (introduced in Jenkins 2.0), these jobs are not visible in the related dropdown list on the view config page.

如何可视化这些工作类型之间的关系?还有其他支持这些类型的插件吗?

How can I visualize the relation of these job types? Is there any other plugin which supports these types?

推荐答案

对此进行思考.

我认为多分支管道的可视化没有像单个分支构建那样有意义.原因是mb管道的每个工作台可以具有不同的构建配置.例如,主人触发了升职,但分支机构却干了别的事情或什么都不做.

I don't think a visualisation of multi branch pipelines makes sense in the same way it would for a single branch build.The reason is that each bench of a mb pipeline can have a different build configuration. Eg with master triggering a promotion job but branch doing something else or nothing.

尽我所能做到最好的办法就是追踪一个单独的内部版本号及其链接.在工作级别上无法做到.

Do the best one could do I think is trace an individual build number and it's links. Can't do it at the job level.

这篇关于可视化Jenkins管道或多分支管道作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 14:51