4.2 Installation of SonarScanner in Jenkins

  1. Install the SonarQube Scanner for Jenkins via the Jenkins Update Center

  1. Configure your SonarQube server(s)

  2. Log into Jenkins as an administrator and go to Manage Jenkins > Configure System: Scroll down to the SonarQube configuration section, click on Add SonarQube , and add the values you're prompted for.

Generate the user token by logging into the SonarQube website and provide the key details in Jenkins for SonarQube versions above 5.2.

Step 3:Configure the tools in Jenkins Global Configuration

This step is mandatory if you want to trigger any of your SonarQube analyses with the SonarQube Scanner. You can define as many scanner instances as you wish. Then for each Jenkins job, you will be able to choose with which launcher to use to run the SonarQube analysis.

  1. Log into Jenkins as an administrator and go to Manage Jenkins > Global Tool Configuration

If you don't see a drop down list with all available SonarQube Scanner versions but instead see an empty text field then this is because Jenkins still hasn't downloaded the required update center file (default period is 1 day). You may force this refresh by clicking 'Check Now' button in Manage Plugins > Advanced tab.

Last updated