Hi,
We’re trying to integrate SonarQube X with TFS 2018 Update 2, but we’re hitting a problem where it throws a generic error and we’re unable to find the cause:
[SQ] API GET ‘/api/server/version’ failed, error was: {}
Connections between TFS build server and SonarQube seem to be working fine (browser, powershell, nodejs) but the error persists.
TFS version: 2018 Update 2
SonarQube API version: 7.4.0.18908
Full stack trace:
2018-11-29T14:37:02.2716664Z ##[debug]Evaluating condition for step: ‘Prepare analysis on SonarQube’
2018-11-29T14:37:02.2718401Z ##[debug]Evaluating: succeeded()
2018-11-29T14:37:02.2718677Z ##[debug]Evaluating succeeded:
2018-11-29T14:37:02.2719222Z ##[debug]=> (Boolean) True
2018-11-29T14:37:02.2719556Z ##[debug]Expanded: True
2018-11-29T14:37:02.2719842Z ##[debug]Result: True
2018-11-29T14:37:02.2720186Z ##[section]Starting: Prepare analysis on SonarQube
2018-11-29T14:37:02.2903016Z ==============================================================================
2018-11-29T14:37:02.2903270Z Task : Prepare Analysis Configuration
2018-11-29T14:37:02.2903458Z Description : Prepare SonarQube analysis configuration
2018-11-29T14:37:02.2903641Z Version : 4.4.1
2018-11-29T14:37:02.2903797Z Author : sonarsource
2018-11-29T14:37:02.2903993Z Help : More Information
2018-11-29T14:37:02.2904230Z ==============================================================================
2018-11-29T14:37:03.0239707Z ##[debug]agent.TempDirectory=D:\agent01_work_temp
2018-11-29T14:37:03.0246621Z ##[debug]loading inputs and endpoints
2018-11-29T14:37:03.0272644Z ##[debug]loading ENDPOINT_AUTH_944aec9f-d607-4815-a962-f845a90620e7
2018-11-29T14:37:03.0273041Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_944aec9f-d607-4815-a962-f845a90620e7_USERNAME
2018-11-29T14:37:03.0273385Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2018-11-29T14:37:03.0273715Z ##[debug]loading ENDPOINT_AUTH_SCHEME_944aec9f-d607-4815-a962-f845a90620e7
2018-11-29T14:37:03.0274032Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2018-11-29T14:37:03.0274322Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2018-11-29T14:37:03.0274590Z ##[debug]loading INPUT_CLIPROJECTVERSION
2018-11-29T14:37:03.0274880Z ##[debug]loading INPUT_CLISOURCES
2018-11-29T14:37:03.0275143Z ##[debug]loading INPUT_CONFIGFILE
2018-11-29T14:37:03.0275425Z ##[debug]loading INPUT_CONFIGMODE
2018-11-29T14:37:03.0275724Z ##[debug]loading INPUT_EXTRAPROPERTIES
2018-11-29T14:37:03.0276005Z ##[debug]loading INPUT_PROJECTKEY
2018-11-29T14:37:03.0276268Z ##[debug]loading INPUT_PROJECTNAME
2018-11-29T14:37:03.0276563Z ##[debug]loading INPUT_PROJECTVERSION
2018-11-29T14:37:03.0276844Z ##[debug]loading INPUT_SCANNERMODE
2018-11-29T14:37:03.0277107Z ##[debug]loading INPUT_SONARQUBE
2018-11-29T14:37:03.0277379Z ##[debug]loaded 16
2018-11-29T14:37:03.0277656Z ##[debug]Agent.ProxyUrl=undefined
2018-11-29T14:37:03.0277919Z ##[debug]Agent.CAInfo=undefined
2018-11-29T14:37:03.0278200Z ##[debug]Agent.ClientCert=undefined
2018-11-29T14:37:03.0278491Z ##[debug]Agent.SkipCertValidation=undefined
2018-11-29T14:37:03.0278790Z ##[debug]SonarQube=944aec9f-d607-4815-a962-f845a90620e7
2018-11-29T14:37:03.0279093Z ##[debug]944aec9f-d607-4815-a962-f845a90620e7=http://XPTO:9000/
2018-11-29T14:37:03.0279419Z ##[debug]944aec9f-d607-4815-a962-f845a90620e7 auth param apitoken = null
2018-11-29T14:37:03.0279883Z ##[debug]944aec9f-d607-4815-a962-f845a90620e7 auth param username = ********
2018-11-29T14:37:03.0280227Z ##[debug]944aec9f-d607-4815-a962-f845a90620e7 auth param password = null
2018-11-29T14:37:03.0281365Z ##[debug]organization=null
2018-11-29T14:37:03.0281646Z ##[debug]scannerMode=MSBuild
2018-11-29T14:37:03.0281923Z ##[debug]projectKey=PRJKEY
2018-11-29T14:37:03.0282195Z ##[debug]projectName=PRJKEY
2018-11-29T14:37:03.0282449Z ##[debug]projectVersion=1.0
2018-11-29T14:37:03.0282748Z ##[debug][SQ] API GET: ‘/api/server/version’ with query “undefined”
2018-11-29T14:37:03.0283061Z ##[debug][SQ] API GET ‘/api/server/version’ failed, error was: {}
2018-11-29T14:37:03.0283355Z ##[debug]task result: Failed
2018-11-29T14:37:03.0325442Z ##[error][SQ] API GET ‘/api/server/version’ failed, error was: {}
2018-11-29T14:37:03.0334046Z ##[debug]Processed: ##vso[task.issue type=error;][SQ] API GET ‘/api/server/version’ failed, error was: {}
2018-11-29T14:37:03.0351546Z ##[debug]Processed: ##vso[task.complete result=Failed;][SQ] API GET ‘/api/server/version’ failed, error was: {}
2018-11-29T14:37:03.0353594Z ##[section]Finishing: Prepare analysis on SonarQube