Go To Knowledge base How to Display Jenkins Build Status Badge on GitHub
Knowledge base

How to Display Jenkins Build Status Badge on GitHub

By: Boban Miksin
2 minute read
How To Display Jenkins Build Status Badge On Github

Note: This is applicable to Jenkins 2.222.1 and Embeddable Build Status Plugin 2.0.3. Perhaps it works for previous versions as well.

  1. Open Jenkins -> Manage Jenkins -> Manage Plugins
  2. Install Embeddable Build Status Plugin from the Available tab
  3. On the project level or the entire Jenkins level, assign Anonymous Users with the ViewStatus Job permission
  4. From the specific build page or branch build page on Jenkins click on the Embeddable Build Status link

    Macro image

  5. Copy the value from the Markdown unprotected box
  6. Paste it in the README.md on a GitHub project

    Macro image

Note that the link from the markdown can be omitted, so only the badge image gets displayed.

As the final result, you should see the following.

Macro image


The image is broken or not shown

GitHub is doing an image link anonymization, which means images are being prefetched, cached, and not served directly from Jenkins. As GitHub performs a strict SSL verification, it will fail if the certificate is invalid or your Jenkins JKS does not contain a full certificate chain. In that case, you have to recreate it.

After you fix the certificate issue, make sure to purge Camo’s cache. A Camo link can be obtained from the README.md preview mode or by simply inspecting the HTML from the browser.

Boban Miksin


Boban is a craftsman with more than ten years of dedicated service to the development and management of new software.

More authors posts :

How we have learned a valuable lesson about teamwork
Workshop with Uncle Bob