简体   繁体   English

添加列以在詹金斯建立历史

[英]Add columns to build history in Jenkins

I would like to add extra columns to the build history sidebar that can be modified by user (comments,etc..). 我想向构建历史侧栏添加额外的列,用户可以对其进行修改(注释等)。

Has anyone did something similar? 有没有人做过类似的事情? or any suggestions how can it done easily? 或任何建议如何轻松完成?

You cannot add columns to the build history without digging deeper into the Jenkins-internal layout engine. 不能在不深入了解Jenkins内部布局引擎的情况下将列添加到构建历史记录中

The simplest solution to achieve what you want is to use the "Edit Build Information" menu item for a build. 实现所需目标的最简单解决方案是使用“编辑构建信息”菜单项进行构建。 Users can add information there, and it's also possible to add HTML code with tables etc there, which can then look nicely in the build history. 用户可以在此处添加信息,也可以在其中添加带有表等的HTML代码,从而可以在构建历史记录中很好地显示它们。

It's not as interactive as what you're looking for, though, and it requires some discipline from your users to avoid that they destroy the build history format completely. 但是,它不像您要查找的那样具有交互性,并且需要用户采取一些纪律措施,以避免他们完全破坏构建历史记录格式。

If you only need comments for failed builds, then the Claim plugin is a nice solution. 如果您仅需要注释失败的构建,那么Claim插件是一个不错的解决方案。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM