Sonar Scanner Azure DevOps fails behind proxy and firewall on private agent

Hi @zaat

I have the same configuration as yours (self-hosted windows private agents with a domain account and Azure Devops).
To solve I added in the pipeline three variables:

variables:
  JAVA_TOOL_OPTIONS: '-Dhttps.proxyHost=<myProxyHost> -Dhttps.proxyPort=<myProxyPort>  -Dhttp.proxyHost=<myProxyHost> -Dhttp.proxyPort=<myProxyPort> "-Dhttps.nonProxyHosts=localhost|*.<myDomain>" "-Dhttp.nonProxyHosts=localhost|*.<myDomain>"'
  HTTP_PROXY: 'http://<myProxyHost>:<myProxyPort>'
  HTTPS_PROXY: 'http://<myProxyHost>:<myProxyPort>'

the JAVA_TOOL_OPTIONS is because we use maven to build

And I set the pipe to use node10

This was the ticket: Azure devops task behind proxy

Hope this helps

1 Like