Embeddable Build Status Icon
Jenkins exposes the current status of your build as an image in 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 build.
For each variant there are two URLs available for inclusion:
- protected exposes the badge to users having at least Read permission on the job
- unprotected exposes the badge to users having at least ViewStatus permission on the job
Note
If you are using Multibranch Pipelines the branch within the job path or name needs to be URL encoded twice.Example:
?job=path/to/job/branch/path
would become
?job=path%2Fto%2Fjob%2Fbranch%252Fpath
See examples below!
Configuration
Please read the documentation to configure and customize your badge.Examples
(Hover badge to see custom configuration)flat
flat-square
plastic
ball-size
Links
Plain link
Protected
https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/icon
Unprotected
https://dvs1.progwml6.com/jenkins/buildStatus/icon?job=JustEnoughItems&build=173
Markdown
Protected
[![Build Status](https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/icon)](https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/)
Unprotected
[![Build Status](https://dvs1.progwml6.com/jenkins/buildStatus/icon?job=JustEnoughItems&build=173)](https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/)
HTML
Protected
<a href='https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/'><img src='https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/icon'></a>
Unprotected
<a href='https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/'><img src='https://dvs1.progwml6.com/jenkins/buildStatus/icon?job=JustEnoughItems&build=173'></a>
Asciidoc
Protected
image:https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/icon[link='https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/']
Unprotected
image:https://dvs1.progwml6.com/jenkins/buildStatus/icon?job=JustEnoughItems&build=173)[link='https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/']
Confluence
Protected
[!https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/icon!|https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/]
Unprotected
[!https://dvs1.progwml6.com/jenkins/buildStatus/icon?job=JustEnoughItems&build=173!|https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/]
XWiki
Protected
[[image:https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/icon>>https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/||target='__new']]
Unprotected
[[image:https://dvs1.progwml6.com/jenkins/buildStatus/icon?job=JustEnoughItems&build=173>>https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/||target='__new']]
RDoc
Protected
{<img src='https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/icon'/>}[https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/]
Unprotected
{<img src='https://dvs1.progwml6.com/jenkins/buildStatus/icon?job=JustEnoughItems&build=173'/>}[https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/]
Textile
Protected
"!https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/icon!":https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/
Unprotected
"!https://dvs1.progwml6.com/jenkins/buildStatus/icon?job=JustEnoughItems&build=173!":https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/
Bitbucket
Protected
[Build Status](https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/icon "https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/")
Unprotected
[Build Status](https://dvs1.progwml6.com/jenkins/buildStatus/icon?job=JustEnoughItems&build=173 "https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/")
Embeddable Build Status Text
Jenkins also exposes the current status of your build in plain text. You can use this in external scripts for easier interpretation of the current state of the build. Similar to the badge there are both protected, as well as unprotected variants.
Text Only
Protected
https://progwml6.com/jenkins/user/cassboys/my-views/view/All/job/JustEnoughItems/173/badge/text
Unprotected
https://dvs1.progwml6.com/jenkins/buildStatus/text?job=JustEnoughItems&build=173