Reputation: 3379
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 !
Upvotes: 9
Views: 5505
Reputation: 6483
Shields.io has progressively added support for Jenkins over the years and now has a variety of badge options available:
Build status badge:
https://img.shields.io/jenkins/s/https/builds.apache.org/job/commons-lang.svg
Tests status badge:
https://img.shields.io/jenkins/t/https/ci.eclipse.org//jdt/job/eclipse.jdt.ui-Gerrit.svg
Code coverage badge using the JaCoCo plugin:
https://img.shields.io/jenkins/j/https/builds.apache.org/job/Derby-JaCoCo.svg
Jenkins plugin version badge:
Upvotes: 3
Reputation: 15570
From shield.io's homepage and it's source code, it doesn't seem to be possible yet.
But shield.io is based on that open source project, so you can send a PR with the integration code. You can check how other integrations work and add the one you are missing. It shouldn't be that hard.
If you really think you won't be able to do it, you can try opening an issue in that repo and hope someone else implements it.
Upvotes: 0