Install and configure SonarQube and Integration With Jenkins

pardeep singh Virdi
1 min readFeb 25, 2019

--

Installation via docker :-

Run the below command on docker :-

$ docker run -d --name sonarqube -p 9000:9000 sonarqube

Now you can access the Sonar with http://IP:9000 .

default username/password :- admin/admin

Integration with SonarQube.

Install SonarQube plugin to Jenkins. Go to Manage Jenkins > Manage Plugins > Available > Search for SonarQube Scanner> Install.

Go to Manage Jenkins > Configure system > SonarQube server section > Add SonarQube > provide the details and token

Go to Mange Jenkins > Global Tool Configuration > Scroll for SonarQube Scanner > Add sonar scanner > name it . checked on Add installer and choose maven option

--

--