Hi,
I want to try SonarQube so I followed the installation steps and I have it running (v10.0.0.68432).
My project is a .NET Framework project, so I downloaded sonar-scanner-msbuild-5.13.0.66756-net46
Then I created a local project in Sonar and tried to analyse the project locally.
Sonar created a token and gave the command line to run the analysis:
SonarScanner.MSBuild.exe begin /k:"test-project" /d:sonar.host.url="http://localhost:9000" /d:sonar.token="sqp_e3c63b69f79d19879f53f88ae62bfcb755746fe5"
When I run this I get the following output:
SonarScanner for MSBuild 5.13
Using the .NET Framework version of the Scanner for MSBuild
Pre-processing started
Preparing working directories...
Unauthorized: Access is denied due to invalid credentials. Please check the authentication parameters.
Pre-processing failed. Exit code: 1
I tried this using both Sonar on Docker and installed locally. I confirmed the token exists in Sonar. I also tried using a user token instead of a project token and I always get the same output.
How can I diagnose this?