Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No sonar-runner option in jenkins?

I'm looking to install sonarQube on our jenkins server.

The documentation i can find tells me to configure sonar-runner in

Jenkins --> manage Jenkins -->  Configure system

however there is no 'sonar runner' option there. There is a 'sonar' option where i configured my sonar server, and the sonar plugin is installed and up to date.

How do i get the sonar-runner configuration to show up?

(We want the standalone sonar job not the maven on as this is a project without maven.)

like image 487
pvgoddijn Avatar asked Nov 27 '22 03:11

pvgoddijn


2 Answers

In newer versions of Jenkins (like 2.2), the sonarqube runner configuration is under

Manage Jenkins > Global Tool Configuration

Thats the solution :)

like image 155
Juan Ignacio Barisich Avatar answered Nov 29 '22 17:11

Juan Ignacio Barisich


Ok. So, if I understand well:

  1. Going into Manage Jenkins' -> 'Manage Plugin' -> tab 'Installed' in the Plugin manager, you can see 'Jenkins Sonar plugin' in the installed plugins. --> Beware that there is a SonarGraph plugin that is not the proper one. Please verify you have this: http://i.stack.imgur.com/SNZLG.jpg

  2. You say you can install the sonar server part in Jenkins. I understand you refer to this doc http://docs.codehaus.org/display/SONAR/Configuring+SonarQube+Jenkins+Plugin#ConfiguringSonarQubeJenkinsPlugin-AddingSonarQubeServer, and more specifically section 'Adding SonarQube Server' point 2 and 3. --> Can you confirm that you have this 'Sonar' part under you Jenkins configuration ?

  3. If yes to previous 1 & 2, you should also have the SonarQube Runner part available in Jenkins, as in the previous doc and the post on my blog. --> Can you confirm this is the part that is lacking ?

  4. Can you try this: Jenkins -> New Job -> Select 'Build a free-style software project', enter a job Name -> click Ok. Section Build -> 'Add build Step': can you see the 'Invoke standalone Sonar analysis' menu : http://i.stack.imgur.com/9TmFr.jpg ?

  5. You have SonarQube runner installed and correctly configured: http://docs.codehaus.org/display/SONAR/Installing+and+Configuring+SonarQube+Runnerhttp://docs.codehaus.org/display/SONAR/Installing+and+Configuring+SonarQube+Runner

Do not hesitate to ask for further precision.

like image 39
Qualilogy Avatar answered Nov 29 '22 17:11

Qualilogy