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

Get Sonar Code Quality Testing Essentials now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.