VSTS SonarQube task failing from OnPrem Agent behind a proxy

vsts

(Rob McArragher) #1

We are using the SonarQube task to prepare analysis configuration. On our on-prem agents we get the following error - “##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“ECONNRESET”}”. This works using our VSTS Azure Agents. The on-prem agents are configured to run behind a proxy, as per Microsoft Documentation (https://docs.microsoft.com/en-us/vsts/pipelines/agents/proxy?view=vsts). Other externally connected tasks work fine (e.g. Nuget restore). Any help much appreciated.