Child pages
  • Embeddable Build Status Plugin
Skip to end of metadata
Go to start of metadata

Plugin Information

View embeddable-build-status on the plugin site for more information.

This plugin allows Jenkins to expose the current status of your build as an image icon badge via a fixed URL. You can put this URL into other sites (such as GitHub README) so that people can see the current state of the job (last build) or for a specific build.

Basic Usage

Once this plugin is installed, you'll see Embeddable Build Status Icon as one of items in the left menu navigation for a job or build of a job respectively.

When you click this icon, you get several links to an icon that shows the current Build Status for your job or the status of a specific build respectively. 
You can paste any of these URLs in other sites so people can see the current state of your build.

Changelog

1.9 (Feb 06, 2016)
1.8 (Aug 31, 2015)
  • Badges for aborted builds (JENKINS-19319)
  • Fix ETag header quoting to respect RFC 7232
  • Some minor "plastic" style image fixes
1.7 (Mar 24, 2015)
  • New badge style: flat, with option to choose the old ("plastic") style (JENKINS-26705)
  • Option to omit view name from the URL (JENKINS-26585)
1.6 (Nov 29, 2014)
  • Support for build status badge for a specific build of a job (JENKINS-25306)
1.5 (Aug 25, 2014)
1.4 (May 31, 2013)
  • ability to expose badges even when Jenkins has no anonymous read access (JENKINS-17798)
1.3 (Mar 05, 2013)
  • missing icon
1.2 (Mar 1st, 2013)
  • Added "unknown" image and use it for disabled and unbuilt jobs (JENKINS-15510)
  • Avoid using 302 redirects given that some browsers cache them (JENKINS-17028)
1.0 (2012/05/09)
  • Initial version

12 Comments

  1. Provided links are not usable with github as they get broken image sign, guess it is down to the redirect

  2. Anyway to do this with private jobs on Jenkins?  

    1. I would like to know this one also, how can I make this accessible for anonymous users?

  3. Is there any way to make the images public in a private jenkins?

  4. Hey,

    for me this plugin is not working with github. I think github needs an image ending with .icon or kind of that. The given urls all don't have an ending. I am i doing sth wrong maybe ?

    1. To get it working in Github (as of April 2014) add a &.png to the end like this:

      ![](http://sparkdev.centralaz.com:8080/buildStatus/icon?job=Rock&.png)

  5. Could we get a new version released, please? The latest one is more than a year old and there are some nice fixes merged recently.

  6. Is possible to get the buid status of a recent build by relative position?

    For example, the build number 358 is the last build, so instead of:

    https://emprego.xunta.es/jenkins/buildStatus/icon?job=the_job&build=358
    

    The following is possible?

    https://emprego.xunta.es/jenkins/buildStatus/icon?job=sicas/sicas-7.11/ContinuousBuilding/sicas-1-building&build=0
    
    https://emprego.xunta.es/jenkins/buildStatus/icon?job=sicas/sicas-7.11/ContinuousBuilding/sicas-1-building&build=last
    
    https://emprego.xunta.es/jenkins/buildStatus/icon?job=sicas/sicas-7.11/ContinuousBuilding/sicas-1-building&build=-1
    
    

    Notes:

    • build=0 and build=last should be equivalents in this context.
    • build=0 means the last build.
    • build=-1 means the (last - 1) build (and so on).

    Why this?

    Because it should be interesting in some cases to show not only the last build status, so the previous build statuses.

  7. It seems like GitHub is not displaying the icons in the README.md. This was mentioned earlier with a workaround, but that isn't working. It looks like they are preventing SVG format images from being included there. Any suggestions? If GitHub is going to persist in preventing SVG images, perhaps PNG could be made an option in the plugin.

    1. Never mind. It was an interaction with caching and the fact the Comcast renumbered me, so my DNS was out of date.

  8. Why can I see jenkins user information in the github build state link?

Write a comment…