Build Trigger Badge Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID buildtriggerbadge Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
2.0 (archives)
Feb 06, 2015
1.509.2
Source Code
Issue Tracking
Pull Requests
Maintainer(s)
GitHub
Open Issues
Pull Requests
Michael Pailloncy (id: mpapo)
Baptiste Mathus (id: batmat)
Usage Installations 2014-May 1338
2014-Jun 1421
2014-Jul 1543
2014-Aug 1571
2014-Sep 1685
2014-Oct 1790
2014-Nov 1853
2014-Dec 1918
2015-Jan 2043
2015-Feb 2082
2015-Mar 2260
2015-Apr 2267

This plugin displays icon(s) representing the cause(s) of a build directly in the build history. It lets you quickly know which cause triggered a build.

Without this plugin, you may sometimes wonder what triggered a particular build shown in the build history.
To know it, you have to open each link separately, which can be cumbersome.

Note: after installation, the plugin will currently only add icons on new builds. Old builds won't have the indicator.

Screenshot - badges

Screenshot - last trigger column

A tooltip on each icon is available for details.

Changelog

Version 2.0 - 06/02/2015

Version 1.4 - 31/01/2015

Version 1.3 - 24/09/2014

  • Some french translations fixes/adjustments
  • add badge for general Git commit hook cause (thanks Domi)

Version 1.2 - 29/04/2014

Version 1.1

  • Added a column showing cause and short description of the last build -> thanks to Łukasz Jąder (ljader) : pullrequest #3
  • Added periodic-reincarnation-plugin cause -> thanks to Mirko Friedenhagen (mfriedenhagen) : pullrequest #4
  • Upgrade required core version to current Jenkins LTS version (1.509.2)

Version 1.0

  • Added M2Release cause as UserCause -> thanks to Christian Apel (christianapel) : pullrequest #1
  • Added GitPush cause + Fall back on superclass if a cause does not have a badge -> thanks to James Clarke (jrtc27) : pullrequest #2

Version 0.9

  • JENKINS-15474 : filter duplicates of the same Cause type and the same description
To remove duplicates of the same Cause type and the same description (see JENKINS-15474), you can apply this groovy script :
import org.jenkinsci.plugins.buildtriggerbadge.BuildTriggerBadgeAction;

for(item in Jenkins.instance.items) {
  for(build in item.builds) {
    def set = new HashSet();
    for(action in build.badgeActions) {
      if(action instanceof BuildTriggerBadgeAction) {
      	def filter = action.cause.class.canonicalName + "_" + action.cause.shortDescription
      	if(set.contains(filter)) {
	    println "removing duplicates BuildTriggerBadgeAction in build " + build.id
      	    build.actions.remove(action)
            build.save()
      	}
      	else {
            set.add(filter);
      	}
      }
    }
  }
}

It's not necessary to apply this script for versions >= 0.9.

Version 0.8

  • JENKINS-15307 : fix images URL when Jenkins is running as non-context root (deployed as a tomcat webapp, for example).

Version 0.7

  • Added a global option to de/activate the plugin

Version 0.6

  • Added support for builds triggered from command line using jenkins-cli.jar (CLICause) and for remotely triggered build (RemoteCause).

Version 0.5

  • initial release. 
    • Shows icons for builds triggered by user, timer, scm or upstream cause. Any other cause will currently show a question mark.

Labels

plugin-ui plugin-ui Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Jan 31, 2013

    jburrows says:

    Installed plugin v0.9, in a Jenkins v1.500 environment. Activated plugin in Jen...

    Installed plugin v0.9, in a Jenkins v1.500 environment.

    Activated plugin in Jenkins / Manage Jenkins / Configure System / Build Trigger Badge / Activate/Deactivate.

    Saved Configuration.

    Nothing appears under Trend column for any job chosen.

    Restarted Jenkins server.

    Nothing appears under Trend column for any job chosen.

    1. Mar 08, 2013

      mpapo says:

      Hi, I recommand you to post your question on the mailing list, or create a tick...

      Hi,

      I recommand you to post your question on the mailing list, or create a ticket in Jenkins JIRA because no one is notified of your comment here.

      The plugin does not show the icons of old build cause. If you launch a build manually (after installation and activation of the plugin) you should see icon appearing, but only for newer builds.

      Hope this help!