Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use Sonar Plugin with Hudson?

I want to use SonarQube for Code Quality analysis. I have Hudson as the CI tool and have integrated clearcase. How do I use SonarQube when the Ant build happens? Do I need to install SonarQube in a server and use a plugin to access it? Can someone help me?

like image 339
user3437212 Avatar asked Nov 08 '22 00:11

user3437212


1 Answers

Install SonarQube web server as a first step. Default port will be localhost:9000.

After installing SonarQube you need to create an Ant target. Sample Script is available on GitHub. If Hudson is working correctly earlier. It will pick up the changes in Ant Script and perform the Analysis. After the completion of Analysis report will be generated and accessible at SonarQube Web Dashboard.

like image 150
Nauman Rafique Avatar answered Dec 26 '22 10:12

Nauman Rafique