Hello,
I am running sonarqube in docker container in my linux machine. And my sonar-scanner is running on another machine which is Windows VM. I have configured the sonarqube in my Jenkins pipeline and trying to run the pipeline, however I am getting below error message everytime.
SonarScanner for MSBuild 4.6
Using the .NET Core version of the Scanner for MSBuild
Pre-processing started.
Preparing working directories…
15:46:27.847 Updating build integration targets…
15:46:27.925 Fetching analysis configuration settings…
15:46:28.068 Failed to request and parse ‘https://test.sonarqube.com/api/server/version ’: An error occurred while sending the request. A security error occurredUnhandled Exception: System.Net.WebException: An error occurred while sending the request. A security error occurred —> System.Net.Http.HttpRequestException: An error occurred while sending the request. —> System.Net.Http.WinHttpException: A security error occurred
I am able to get the SonarQ version when I hit this url in browser - https://test.sonarqube.com/api/server/version, however seems to be an issue for sonarscanner to get the expected version as output.
My sonarqube is running on https and also its behind the Nginx reverse proxy.
I also tried passing my proxy configurations to SONAR_SCANNER_OPTS env variable on my sonar scanner instance, however I am still getting the same error message as mentioned above(Failed to request and parse). And I also tried adding the sonarqube ssl certificate into the Jenkins Java Truststore file, still getting the same above error.
I am using below versions -
Sonarqube version - 7.9 LTS version
Sonarscanner version - 3.0.3.778
Could you please help me here to resolve this issue?