Sonarqube task is failing behind the proxy in azure devops

Sonarqube server is running in on-prem and only accessible from our internal network. I have configured HTTP_PROXY and HTTPS_PROXY.
Thanks in advance

ECONNRESET error is getting. If I remove HTTP_PROXY and HTTPS_PROXY it is working. but we need those config in build agent for other tasks.

@Joe could you help me on this

Hi @charuhasan_kappad ,

Please see this post and see if it helps: VSTS SonarQube task failing from OnPrem Agent behind a proxy - #2 by fabbios

Hi @Joe , it is not working for me, I have configured no_proxy and selected standalone scanner instead of MSbuild and it is working fine. I think MSbuild is not reading no_proxy value. is there any problem with MSbuild scanner?

Hi @charuhasan_kappad ,

You can try this also:

SONAR_SCANNER_OPTS="-Dhttp.proxyHost=yourProxyHost -Dhttp.proxyPort=yourProxyPort -Dhttp.nonProxyHosts=listOfPatterns"

On Windows, I believe you should avoid usage of double-quotes since they get misinterpreted.

Please read Java Networking and Proxies for more details and examples.