Tuesday, 27 May 2014

How to use sonar in linux ubuntu



Steps:

1. Download sonar-qube
2.Go to sonar-qube download place extract the zip file
3.Goto  sonar-qube folder then select the bin folder, choose the operating system folder this entire path should be copy  and paste into terminal
 now like


.../Krishna/sonarqube-4.2/bin/linux-x86-32$

For start:

then type this command on the terminal
sudo ./sonar.sh start



/Krishna/sonarqube-4.2/bin/linux-x86-32$ sudo ./sonar.sh start


Now sonar started.


How to access the project with sonar


Go to project location copy path, then paste into terminal


run this command on the terminal,


mvn clean install -Psonar sonar:sonar

/workspace/atmecs-seleniuml_up1$ mvn clean install -Psonar sonar:sonar


Accessing from browser:

open browser type this like: http://localhost:9000/