HiveBrain v1.2.0
Get Started
← Back to all entries
snippetMinor

How to add a new column with custom value extracted from the job?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
extractedthenewcolumnwithvaluecustomhowfromjob

Problem

The current list of Jenkins jobs has 4 columns:

  • Name



  • Last Success



  • Last Failure



  • Last Duration



Is there any way to add a new column which would have some custom value extracted from the job?

Solution

From what I can tell you can definitely customize the columns for a custom view (I can't find where to change it for the "All" view, but it's probably possible). Unfortunately it doesn't look trivial to add a custom column without writing a plugin, for example the jacoco plugin:

https://github.com/jenkinsci/jacoco-plugin/blob/master/src/main/java/hudson/plugins/jacococoveragecolumn/JaCoCoColumn.java

Jenkins Java Doc:

http://javadoc.jenkins.io/hudson/views/ListViewColumn.html

Edit: This plugin might get you closer to what you're looking for:

https://wiki.jenkins-ci.org/display/JENKINS/Extra+Columns+Plugin

Context

StackExchange DevOps Q#53, answer score: 4

Revisions (0)

No revisions yet.