SonarQube, previously known as Sonar, is a rapidly evolving application for reporting quality metrics and finding code hotspots. This recipe details how to generate code metrics through a Jenkins plugin, and then push them directly to a Sonar database.
Integrating Jenkins with SonarQube
Getting ready...
- Go to the Jenkins dashboard and click on Manage Jenkins. Go to Manage Plugins and in the Available tab find the SonarQube plugin.
- Click on Install without restart:
![](https://static.packt-cdn.com/products/9781788297943/graphics/assets/f0f2e9d6-705a-401e-89de-32d35d591fcb.png)
- Go to the Jenkins dashboard and click on Manage Jenkins.
- Click on Configure system and find the SonarQube section.
- Now, let's go to SonarQube to get the token to integrate Jenkins and SonarQube.
- Once SonarQube is up and running, open the browser at http...