- Make sure that you have added Jacoco code coverage report plugin and Html publisher plugin in your project
- Install maven in jenkins. Follow - https://www.tutorialspoint.com/jenkins/jenkins_maven_setup.htm
- Install Jenkins on your local machine
- Install the JaCoCo plugin in Jenkins. Manage Jenkins -> Add Plugins
- Create a new Jenkins job
- Provide the git repository in which your code is present
- Provide your git credentials
- Add Maven build step with clean install instruction
- Add jacoco plugin in Post build step to generate code coverage report
If stuck on some instruction please refer to the images.