user3437212
user3437212

Reputation: 675

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?

Upvotes: 5

Views: 203

Answers (1)

Nauman Rafique
Nauman Rafique

Reputation: 405

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.

Upvotes: 1

Related Questions