Hi guys,
I am working with Sonarqube Enterprise edition and facing a problem while accessing the sonarqube target url “https://devops.sonarq.prd.prd.bfsaws.net”…
The Jenkin’s pipeline is configured to trigger the scan, while running the build it’s failing with the error “Failed to request and parse ‘https://devops.sonarq.prd.prd.bfsaws.net/api/server/version’: A task was canceled.”
There is no proxy between the servers.When i access this server and type this URL at browser and it returns the Sonarqube version “9.9.6.92038”.
MSBuild version is 5.4
I have verified the firewall , network settings for the server, everything seems to be working fine, as respective teams have checked it all that there is no communication issue. through the browser target url “https://devops.sonarq.prd.prd.bfsaws.net” is accessible.
Below is the error log
[03:32:44.707 03:32:44.69 Loading analysis properties from C:\SonarQube\sonar-scanner-msbuild-5.4.0.40033-net46\SonarQube.Analysis.xml
03:32:44.707 03:32:44.707 sonar.verbose=true was specified - setting the log verbosity to ‘Debug’
03:32:44.713 Updating build integration targets…
03:32:44.719 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\sa-projdevops-dev\AppData\Local\Microsoft\MSBuild\4.0\Microsoft.Common.targets\ImportBefore
03:32:44.719 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\sa-projdevops-dev\AppData\Local\Microsoft\MSBuild\10.0\Microsoft.Common.targets\ImportBefore
03:32:44.72 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\sa-projdevops-dev\AppData\Local\Microsoft\MSBuild\11.0\Microsoft.Common.targets\ImportBefore
03:32:44.72 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\sa-projdevops-dev\AppData\Local\Microsoft\MSBuild\12.0\Microsoft.Common.targets\ImportBefore
03:32:44.72 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\sa-projdevops-dev\AppData\Local\Microsoft\MSBuild\14.0\Microsoft.Common.targets\ImportBefore
03:32:44.72 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\sa-projdevops-dev\AppData\Local\Microsoft\MSBuild\15.0\Microsoft.Common.targets\ImportBefore
03:32:44.721 The file SonarQube.Integration.ImportBefore.targets is up to date at C:\Users\sa-projdevops-dev\AppData\Local\Microsoft\MSBuild\Current\Microsoft.Common.targets\ImportBefore
03:32:44.729 Installed SonarQube.Integration.targets to D:\Jenkins\workspace\MyProj\Tax 3.0 SonarQube Scanner\SonarScan_Tax3.0.sonarqube\bin\targets
03:32:44.731 Creating config and output folders…
03:32:44.733 Creating directory: D:\Jenkins\workspace\MyProj\Tax 3.0 SonarQube Scanner\SonarScan_Tax3.0.sonarqube\conf
03:32:44.733 Creating directory: D:\Jenkins\workspace\MyProj\Tax 3.0 SonarQube Scanner\SonarScan_Tax3.0.sonarqube\out
03:32:44.778 Downloading from https://devops.sonarq.prd.prd.bfsaws.net/api/server/version…
03:34:24.804 Failed to request and parse ‘https://devops.sonarq.prd.prd.bfsaws.net/api/server/version’: A task was canceled.
Unhandled Exception: System.Threading.Tasks.TaskCanceledException: A task was canceled.]
Could someone please help to understand and fix this issue.