Is there a way to show the Jenkins build status on my project\'s GitHub Readme.md?
I use Jenkins to run continuous integration builds. After each commit it ensures
Edit:
I'm no longer using this approach, please use one of the other answers.
Update: what I ended up doing, for our specific case: (above answers were great - thanks!)
Because our build server is not on the internet, we have a script to publish the build status to the gh-pages branch in github.
GitHub caches images, so we created .htaccess file, that instructs a short cache timeout for the build-status image.
Put this in the directory with the build-status image:
ExpiresByType image/png "access plus 2 minutes"
Here's the build script. The target that publishes to gh-pages is '--publish.site.dry.run'
With less than 400 lines of config, we have:
. . and this script can be run in or outside of Jenkins, so that:
The Results:
Project main page has the build status, updated after each build, along with latest API Docs, test results and test coverage.