2

I'm trying to configure code quality check with SonarQube in Jenkins. I've added in Jenkins Sonar - plugin and configured it in Manage Jenkins - Configure system - MSBuild SonarQube Runner Error

But when I try to buid my project with Jenkins, I get the error:

FATAL: No SonarQube installation assigned for this job. There are 0 available installations that can be configured. If you want to reassign a lot of jobs to a different SonarQube installation see http://docs.sonarqube.org/display/PLUG/Reassign+Jobs+to+Another+SonarQube+Instance Build step 'Invoke Standalone SonarQube Analysis' marked build as failure channel stopped

EDIT

The page cited in the error message has moved. The new URL is: https://docs.sonarqube.org/display/SCAN/Reassign+Jobs+to+Another+SonarQube+Instance

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
Ksu
  • 109
  • 2
  • 8
  • Do you have a sonarqube server running? Is the runner configured to publish to the server? – John Scattergood Mar 02 '16 at 16:07
  • Yes, I've started sonarqube server. About second question: I'm not sure that I've made all configurations You can see my settings on a picture http://i.stack.imgur.com/zq3EL.png Thanks ahead – Ksu Mar 02 '16 at 16:19
  • Possible duplicate of [Do I need sonar and sonar runner for Jenkins?](http://stackoverflow.com/questions/13472283/do-i-need-sonar-and-sonar-runner-for-jenkins) – John Scattergood Mar 02 '16 at 16:28

2 Answers2

0

There are 2 parts of global configuration. You have done the first. Now you must configure at least one SonarQube server.

Look for the section toward the bottom of the page labeled either "SonarQube", or "SonarQube server" and configure the server instance you expect analysis to submit data to.

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
0

For Maven or Ant steps, you need to set the variables to point the scanner to the sonarqube server.

maven

For Standalone, you can define the sonar server installation directly.

standalone

Instructions

John Scattergood
  • 1,032
  • 8
  • 15
  • That's required when you're using for instance a Maven build step for analysis, but not for the "Stand alone SonarQube Analysis" or "SonarQube Scanner for MSBuild" steps, the latter of which the OP is presumably using. – G. Ann - SonarSource Team Mar 02 '16 at 17:16