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:
- 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...