https://wiki.jenkins-ci.org/display/JENKINS/GitHub+PR+Coverage+Status+Plugin
Parse code coverage report generated by build and post code coverage status comment to GitHub pull request:
- Jacoco
jacoco.xml
- Cobertura
cobertura.xml
orcobertura-coverage.xml
- Clover
clover.xml
- Select or create new Jenkins build
- Ensure that build create code coverage report file
- Configure build to be triggered by GitHub pull request builder plugin
- Install plugin from Jenkins Plugin Repository
- Or manually
- Goto releases
- Download latest version of plugin .hpi file
- Install to your Jenkins guide
- Configure global settings of plugin
- GitHub API URL keep blank for GitHub.com and fill if for dedicated instance of GitHub, example:
http(s)://hostname/api/v3/
- Set Personal Access Token (or keep blank if anonymous access enabled)
- [Optional] Add Record Master Coverage post build step to build which test your master
- Add Publish coverage to GitHub post build step to build. It should be triggered by GitHub pull request builder plugin
First public release to Jenkins Plugin Repo