Description
I am using sonarscanner sonar-scanner-msbuild-4.10.0.19059-net46 and sonarqube sonarqube-9.0.1.46107 locally. The SonarScanner.MSBuild.exe end command does not send the results to sonarqube server.
Steps to Reproduce
- cd to ProjectFolder
- SonarScanner.MSBuild.exe begin /k:“1234Test” /d:sonar.host.url=“http://localhost:9000” /d:sonar.login="[token]"
- MsBuild.exe /t:Rebuild
- SonarScanner.MSBuild.exe end /d:sonar.login="[token]"
The final output i receive is
SonarScanner for MSBuild 4.10
Using the .NET Framework version of the Scanner for MSBuild
Post-processing started.
13:00:38.198 13:00:38.173 Uninstalling target: C:\Users\abhishek\AppData\Local\Microsoft\MSBuild\4.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
13:00:38.2 13:00:38.173 Uninstalling target: C:\Users\abhishek\AppData\Local\Microsoft\MSBuild\10.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
13:00:38.2 13:00:38.173 Uninstalling target: C:\Users\abhishek\AppData\Local\Microsoft\MSBuild\11.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
13:00:38.2 13:00:38.173 Uninstalling target: C:\Users\abhishek\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
13:00:38.2 13:00:38.173 Uninstalling target: C:\Users\abhishek\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
13:00:38.2 13:00:38.173 Uninstalling target: C:\Users\abhishek\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
13:00:38.2 13:00:38.173 Uninstalling target: C:\Users\abhishek\AppData\Local\Microsoft\MSBuild\Current\Microsoft.Common.targets\ImportBefore\SonarQube.Integration.ImportBefore.targets
13:00:38.2 13:00:38.198 sonar.verbose=true was specified - setting the log verbosity to 'Debug'
13:00:38.2 Loading the SonarQube analysis config from D:\SonarQube\InvoiceMe-Development\.sonarqube\conf\SonarQubeAnalysisConfig.xml
13:00:38.2 Not running under TeamBuild
13:00:38.2 Analysis base directory: D:\SonarQube\InvoiceMe-Development\.sonarqube
Build directory:
Bin directory: D:\SonarQube\InvoiceMe-Development\.sonarqube\bin
Config directory: D:\SonarQube\InvoiceMe-Development\.sonarqube\conf
Output directory: D:\SonarQube\InvoiceMe-Development\.sonarqube\out
Config file: D:\SonarQube\InvoiceMe-Development\.sonarqube\conf\SonarQubeAnalysisConfig.xml
Generating SonarQube project properties file to D:\SonarQube\InvoiceMe-Development\.sonarqube\out\sonar-project.properties
Setting analysis property: sonar.visualstudio.enable=false
The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: D:\SonarQube\InvoiceMe-Development\InvoiceMe\bin\Debug\InvoiceMe.exe.RoslynCA.json
The supplied Code Analysis ErrorLog file is a valid json file and does not need to be fixed: D:\SonarQube\InvoiceMe-Development\InvoiceMe\bin\Debug\InvoiceMe.exe.RoslynCA.json
Using longest common projects root path as project base directory: 'D:\SonarQube\InvoiceMe-Development\InvoiceMe'.
Dumping content of sonar-project.properties
------------------------------------------------------------------------
sonar.projectKey=1234Test
sonar.working.directory=D:\\SonarQube\\InvoiceMe-Development\\.sonarqube\\out\\.sonar
sonar.projectBaseDir=D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.projectKey=1234Test:C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.projectName=InvoiceMe
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.projectBaseDir=D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.sourceEncoding=utf-8
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.sources=\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_EditItem.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_EditItem.Designer.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_AddItem.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_AddItem.Designer.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_ClientManager.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_ClientManager.Designer.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_InvoiceManager.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_InvoiceManager.Designer.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_LoginScreen.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_LoginScreen.Designer.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_MainMenu.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_MainMenu.Designer.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_Overview.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_Overview.Designer.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_PrintInvoices.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_PrintInvoices.Designer.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Program.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Properties\\AssemblyInfo.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\SqliteHandler.cs",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_EditItem.resx",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_AddItem.resx",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_ClientManager.resx",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_InvoiceManager.resx",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_LoginScreen.resx",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_MainMenu.resx",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_Overview.resx",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Forms\\FM_PrintInvoices.resx",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Properties\\Resources.resx",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\packages.config",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\Properties\\Settings.settings",\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\App.config"
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.cs.roslyn.reportFilePath=D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\bin\\Debug\\InvoiceMe.exe.RoslynCA.json
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.cs.analyzer.projectOutPath=D:\\SonarQube\\InvoiceMe-Development\\.sonarqube\\out\\0
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.cs.analyzer.projectOutPaths=\
"D:\\SonarQube\\InvoiceMe-Development\\.sonarqube\\out\\0"
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.cs.roslyn.reportFilePaths=\
"D:\\SonarQube\\InvoiceMe-Development\\InvoiceMe\\bin\\Debug\\InvoiceMe.exe.RoslynCA.json"
C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7.sonar.working.directory=D:\\SonarQube\\InvoiceMe-Development\\.sonarqube\\out\\.sonar\\mod0
sonar.host.url=http://localhost:9000
sonar.visualstudio.enable=false
sonar.modules=C49EE5A4-4DC4-4862-AC6B-17DC627F9DE7
------------------------------------------------------------------------
Writing processing summary to D:\SonarQube\InvoiceMe-Development\.sonarqube\out\ProjectInfo.log
Calling the SonarQube Scanner...
Executing file D:\SonarQube\sonar-scanner-msbuild-4.10.0.19059-net46\sonar-scanner-4.4.0.2170\bin\sonar-scanner.bat
Args: -Dsonar.scanAllFiles=true -Dproject.settings=D:\SonarQube\InvoiceMe-Development\.sonarqube\out\sonar-project.properties --from=ScannerMSBuild/4.10 --debug <sensitive data removed>
Working directory: D:\SonarQube\InvoiceMe-Development
Timeout (ms):-1
Process id: 14328
Process returned exit code 0
Still i cant see the results of static code analysis on the server.
I tried the same on sonarqube-8.9.2.46101 as well.