We are currently migrate from on-prem SonarQube to SonarCloud. My build agent is on-prem behind a coporate proxy. The first step Prepare analysis work great and download the properties of my project on SonarCloud.
But during the second task Run Code Analysis, I have this error (Full log (1.2 MB)) :
ERROR: SonarQube server [https://sonarcloud.io] can not be reached
We have checked our proxy log and we have entry for the frist task but not for the second, which explains the error.
I have set HTTP_PROXY and HTTPS_PROXY environnement variables and I have try to add this options commands to the Prepare analysis task :
https.proxyHost=proxy https.proxyPort=8080 http.proxyHost=proxy http.proxyPort=8080
- Version : SonarCloud on Azure DevOps with SonarCloud 1.6.0