Installing the Sonar plugin
Before we test our new job, let's install the Sonar plugin. The Sonar plugin enables Jenkins to initiate a Sonar analysis after each build. From the Jenkins home page http://localhost:8080/, click on the Manage Jenkins link, and Manage Plugins from the next screen. Click on the Available tab and search (Ctrl + F) for Sonar to find and select the Sonar plugin. Then, click on the Install without restart button to start the installation process.
While Jenkins is downloading and installing the plugin, make sure to check the Restart Jenkins option as shown in the following screenshot. This will ensure that Jenkins restarts immediately once the installation is complete.
With the Sonar plugin installed, go to Manage Jenkins ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access