SonarCloud VSTS (Azure Devops) Extension - Cannot set proxy in Prepare Analysis Configuration task

sonarcloud
vsts
proxy

(Souayah Oussama) #1

Hi there,
evaluating SonarCloud for our organization

I have a private build agent (vsts) running under corporate proxy.

I am not able to connect to sonarcloud.io:

2019-01-29T16:49:29.5977577Z 11:49:29.592  Downloading from https://sonarcloud.io/api/server/version...
2019-01-29T16:49:50.7382831Z ##[error]11:49:50.67  Failed to request and parse 'https://sonarcloud.io/api/server/version': Unable to connect to the remote server
2019-01-29T16:49:50.7409135Z ##[debug]Processed: ##vso[task.logissue type=error;]11:49:50.67  Failed to request and parse 'https://sonarcloud.io/api/server/version': Unable to connect to the remote server

Note that the SonarCloud integration runs smoothly under another agent not under corporate proxy.
attached full logs if it can help 5.txt (14.3 KB)

Thanks,
Oussama


(Julien Henry) #3

Hi @ouss213,

What is your project type? Are you analyzing an MSBuild project, or a using the standalone scanner? I’m talking about this part of the task configuration:
image

Is your proxy requiring authentication?

Our task will probably not automatically get the proxy configuration, you can try to add the extra properties in the Additional Properties text field:

http.proxyHost=xxxx
http.proxyPort=xxxx
http.proxyUser=xxxx
http.proxyPassword=xxxx