Hello Team,
I dont see organisation key created
when I try with project key - it is refusing the connection
Error :
Failed to request and parse ‘http://localhost:9000/api/server/version’: Connection refused
Unhandled exception. System.Net.Http.HttpRequestException: Connection refused
—> System.Net.Sockets.SocketException (111): Connection refused
Tried changing: got different error
- dotnet sonarscanner begin /k:“project.key” /d:“sonar.login=${SONAR_TOKEN}” /d:“sonar.host.url=https://sonarcloud.io”
- dotnet build SharkWebApi.sln
- dotnet sonarscanner end /d:“sonar.login=${SONAR_TOKEN}”
Any suggestion on this would be appreciated.
Best Regards,
RS
+ dotnet sonarscanner begin /k:"intersectinnovations_api" /d:"sonar.login=${SONAR_TOKEN}" /d:"sonar.host.url=https://sonarcloud.io"
SonarScanner for MSBuild 5.2.2
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories...
20:03:20.34 Updating build integration targets...
20:03:21.011 Fetching analysis configuration settings...
20:03:21.354 Failed to request and parse 'https://sonarcloud.io/api/qualityprofiles/search?project=intersectinnovations_api': Response status code does not indicate success: 400 ().
Unhandled exception. System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at SonarScanner.MSBuild.PreProcessor.WebClientDownloader.TryDownloadIfExists(String url, Boolean logPermissionDenied)
at SonarScanner.MSBuild.PreProcessor.SonarWebService.<>c__DisplayClass6_0.<<TryGetQualityProfile>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at SonarScanner.MSBuild.PreProcessor.SonarWebService.DoLogExceptions[T](Func
1 op, String url)`
at SonarScanner.MSBuild.PreProcessor.SonarWebService.TryGetQualityProfile(String projectKey, String projectBranch, String organization, String language)
at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.FetchArgumentsAndRulesets(ISonarQubeServer server, ProcessedArgs args, TeamBuildSettings settings)
at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.DoExecute(ProcessedArgs localSettings)
at SonarScanner.MSBuild.PreProcessor.TeamBuildPreProcessor.Execute(String[] args)
at SonarScanner.MSBuild.BootstrapperClass.PreProcess()
at SonarScanner.MSBuild.BootstrapperClass.Execute()
at SonarScanner.MSBuild.Program.Execute(String[] args, ILogger logger)
at SonarScanner.MSBuild.Program.Execute(String[] args)
at SonarScanner.MSBuild.Program.Main(String[] args)
at SonarScanner.MSBuild.Program.<Main>(String[] args)
``