Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show github build status in readme.md

I'm using Jenkins to run my builds, and update the github status of my projects.

This works fine.

I'd like to show the status of the build using http://shields.io/ on my README.md, like Travis does it.

Any thought of how can I do that ?

I don't want to use Travis for my project, I want to keep Jenkins.

Thanks !

like image 1000
Rémy Virin Avatar asked Jun 18 '14 13:06

Rémy Virin


1 Answers

Shields.io has progressively added support for Jenkins over the years and now has a variety of badge options available:

  • Build status badge: Jenkins

    https://img.shields.io/jenkins/s/https/builds.apache.org/job/commons-lang.svg

  • Tests status badge: Jenkins tests

    https://img.shields.io/jenkins/t/https/ci.eclipse.org//jdt/job/eclipse.jdt.ui-Gerrit.svg

  • Code coverage badge using the JaCoCo plugin: Jenkins tests

    https://img.shields.io/jenkins/j/https/builds.apache.org/job/Derby-JaCoCo.svg

  • Jenkins plugin version badge: Jenkins tests

    https://img.shields.io/jenkins/plugin/v/blueocean.svg

like image 60
Pyves Avatar answered Oct 11 '22 11:10

Pyves