You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotnet sonarscanner does not use system proxy (linux)
Repro steps
Use docker image microsoft/dotnet:2.1-sdk-alpine as base.
Hide your sonarqube server and/or nuget repositories from direct access and make them accessible only via proxy server.
Configure system proxy: http://server:3128
export as https_proxy, http_proxy, HTTPS_PROXY, HTTP_PROXY
Expected behavior
use system proxy as all other components.
Actual behavior
curl $SONARHOST works curl $NUGETREPO works dotnet restore works dotnet sonarscanner begin fails:
Downloading from https://$SONARHOST/api/server/version...
Failed to request and parse 'https://$SONARHOST/api/server/version': No such device or address No such device or address
The name of the SonarQube server could not be resolved. Check the url is correct and that the server is available. Url: https://$SONARHOST
Known workarounds
None, if proxy connection is required, and direct connection impossible.
Description
dotnet sonarscanner
does not use system proxy (linux)Repro steps
Use docker image
microsoft/dotnet:2.1-sdk-alpine
as base.Hide your sonarqube server and/or nuget repositories from direct access and make them accessible only via proxy server.
Install
Configure system proxy:
http://server:3128
export as
https_proxy
,http_proxy
,HTTPS_PROXY
,HTTP_PROXY
Expected behavior
use system proxy as all other components.
Actual behavior
curl $SONARHOST
workscurl $NUGETREPO
worksdotnet restore
worksdotnet sonarscanner begin
fails:Known workarounds
None, if proxy connection is required, and direct connection impossible.
Related information
doker image: microsoft/dotnet:2.1-sdk-alpine
dotnet tool: dotnet-sonarscanner 4.3.1
The text was updated successfully, but these errors were encountered: