using the dotnet-sonarscanner version 4.7.1 through the command line
trying to get the sonar scanner running from the command line at the moment with just
msbuild.exe solution.sln /rebuild it’s currently failing on the post-processing step and i can’t seem to get beyond that
I thought maybe having spaces in my java path was causing the problem so I tried updating my path to a location that didn’t have any spaces in it but no luck.
I also tried using dotnet sonar scanner and msbuild sonar scanner. both with the same result
These are the steps i’m executing:
dotnet-sonarscanner begin /k:"key" /d:sonar.host.url="https://my_company_sonarqube.com" /d:sonar.login="token" /d:sonar.verbose=true MSBuild.exe solution.sln /t:Rebuild /p:Platform="Any CPU" dotnet-sonarscanner end /d:sonar.login="token"
Everything seems to work fine until i get to the post-processing step:
Executing file C:\Users\userid\.dotnet\tools\.store\dotnet-sonarscanner\4.7.1\dotnet-sonarscanner\4.7.1\tools\netcoreapp2.1\any\sonar-scanner-188.8.131.529\bin\sonar-scanner.bat Args: -Dsonar.scanAllFiles=true -Dproject.settings=C:\Users\userid\Documents\project_path\.sonarqube\out\sonar-project.properties --embedded --debug <sensitive data removed> Working directory: C:\Users\userid\Documents\project_path Timeout (ms):-1 Process id: 38116 Error: Could not find or load main class Process returned exit code 1 The SonarQube Scanner did not complete successfully 19:53:44.155 Post-processing failed. Exit code: 1