I’m using sonarqube-10.3.0.82913, with MSBuilder sonar-scanner-6.1.0.83647-net-framework, my project is .NET framework 7 and I’m trying to see the Result of Sonarqube, but there is no report in Dashboard of my project.
I reinstalled the Sonarqube, review the permissions, remove all temp files and the logs do not show any processing errors, but even all tentative the results are the same.
It follows attached my logs with verbose.sonar = true
18:10:39.214 Writing processing summary to C:\Projetos\CIA\BR\BR-ADFS-Integration-Web\BR-ADFS-Integration.sonarqube\out\ProjectInfo.log
Calling the TFS Processor executable…
Executing file C:\SonarQube\mssbuilder\SonarScanner.MSBuild.TFSProcessor.exe
Args: ConvertCoverage C:\Projetos\CIA\BR\BR-ADFS-Integration-Web\BR-ADFS-Integration.sonarqube\conf\SonarQubeAnalysisConfig.xml C:\Projetos\CIA\BR\BR-ADFS-Integration-Web\BR-ADFS-Integration.sonarqube\out\sonar-project.properties
Working directory: C:\Projetos\CIA\BR\BR-ADFS-Integration-Web\BR-ADFS-Integration
Timeout (ms):-1
Process id: 14080
Process returned exit code 0
The TFS Processor has finished
Calling the SonarScanner CLI…
Executing file C:\SonarQube\mssbuilder\sonar-scanner-5.0.1.3006\bin\sonar-scanner.bat
Args: -Dsonar.scanAllFiles=true -Dproject.settings=C:\Projetos\CIA\BR\BR-ADFS-Integration-Web\BR-ADFS-Integration.sonarqube\out\sonar-project.properties --from=ScannerMSBuild/6.1 --debug
Working directory: C:\Projetos\CIA\BR\BR-ADFS-Integration-Web\BR-ADFS-Integration
Timeout (ms):-1
Process id: 12316
Process returned exit code 0
The SonarScanner CLI has finished
18:10:39.468 Post-processing succeeded.
Thanks for those logs. I can see issues being raised (in the build log) and I don’t see anything in the log to indicate a problem. So I’m going to call for another set of eyes.
Your access log doesn’t include any lines for /api/ce/submit which is the URL used to submit analysis reports to SonarQube. I can only conclude that there’s something between the analyzer and SonarQube blocking the network traffic.
I had the same issue today and I found a solution, not the best, but it worked.
The problem for me was that the classic .net framework invocation wasn’t calling sonar-scanner correctly. For some reason they’re called but didn’t executed succefuly.
So I force this call at the end of script, like this:
SonarScanner.MSBuild.exe begin /k:"PROJECT-KEY" /d:sonar.token="TOKEN"
MSBuild.exe /t:Rebuild
SonarScanner.MSBuild.exe end /d:sonar.token="TOKEN"
sonar-scanner -Dsonar.token=TOKEN -Dsonar.projectKey=PROJECT-KEY -Dsonar.sources=. -Dsonar.host.url=http://localhost:9000 -X
You can’t include “” in sonar-scanner parameters, just the value.
And I did another change that scanner worked for me too an maybe will work for you @BrunoBL.
I was using sonar-sanner for .NET and when I change to sonar-sanner CLI (SonarScanner CLI) I just needed to execute the command:
call sonar-scanner -Dsonar.token=TOKEN
But unfortunately, I still with C# problem.
I check log execution and I saw this information: