Skip to content

Jenkins Sonar Integration

Harshal edited this page Dec 4, 2019 · 1 revision

Jenkins & Sonar Integration

This guide assumes that you have Jenkins installed.

Install SonarQube

  • Download SonarQube binaries

Remember to use a non root account to configure SonarQube.

https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-7.8.zip

unzip sonarqube-7.8.zip

cd sonarqube-7.8
  • Configure basic sonar properties

Edit the property file - vi conf/sonar.properties

Uncomment the below variables

sonar.embeddedDatabase.port=9092
sonar.web.host=0.0.0.0
sonar.web.port=9000

Save the configuration

  • Boot SonarQube
bin/linux-x86-64/sonar.sh console & 

Your sonarQube will be active on http://YOUR_EXTERNAL_IP:9000

Login with the credentials - admin/admin



Configure Jenkins

Install the SonarScanner Plugin in Jenkins -

Manage Jenkins –> Manage Plugins > Available –> SonarQube scanner