Sonar-Scanner problem

  • I am using versions SonarQube 6.7.5, Scanner 3.2.0.,1227,
  • I am trying to get the sonar scanner to work

The error I am receiving is the I must define the following mandatory properties for ‘Unknown’: sonar.projectKey, sonar.sources.

I basically copied what was in the sonar-project.properties file. This file doesn’t make any sense to me. I would like to have the sonar scanner work for its initial build to pull the project from my git server.
image

Hi,

It sounds like your sonar-project.properties file isn’t being found. Are you launching analysis from the directory it’s in?

 
Ann

I try to run the sonar-scanner all the way down to where the sonar-scanner script is located. This is the new error I get. Where do I need to actually invoke the sonar-scanner script?
image

Hi,

You need to launch analysis from the directory where your sonar-project.properties is located.

 
Ann