SonarQubeAnalysisConfig.xml file not generated


(Devesh) #1

We confiured the sonarqube to run on local server http://localhost:9000
installed the sonarqube runner an ran below comman from visual basic command prompt

C:\SQRunMSBuild\SonarScanner.MSBuild.exe begin /k:“CPKey” /d:sonar.verbose=true
This resulted in successful pre-processing. Then we ran

“C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe” /t:rebuild
the build succeeded. After that we ran

C:\SQRunMSBuild\SonarScanner.MSBuild.exe end
We got an error message saying:

Post-processing started.
16:10:26.158 SonarQube analysis could not be completed because the analysis configuration file could not be found: C:<my project path>.sonarqube\conf\SonarQubeAnalysisConfig.xml.
16:10:26.16 Post-processing failed. Exit code: 1

We see, the subfolder conf is also not created under .sonarqube folder.

Please suggest. Thanks in advance.

(G Ann Campbell) #2


On the face of it, this sounds like a permissions issue. Does the user running analysis have permissions to write to the project directory?