-
Notifications
You must be signed in to change notification settings - Fork 39
Jenkins Sonar Integration
Harshal edited this page Dec 4, 2019
·
1 revision
This guide assumes that you have Jenkins installed.
- 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
Install the SonarScanner Plugin in Jenkins -
Manage Jenkins –> Manage Plugins > Available –> SonarQube scanner