Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet-sonarscanner does not use system proxy (linux) #552

Closed
patrikbeno opened this issue Aug 10, 2018 · 0 comments
Closed

dotnet-sonarscanner does not use system proxy (linux) #552

patrikbeno opened this issue Aug 10, 2018 · 0 comments
Milestone

Comments

@patrikbeno
Copy link

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

dotnet tool install --global dotnet-sonarscanner --version 4.3.1

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.

Related information

doker image: microsoft/dotnet:2.1-sdk-alpine
dotnet tool: dotnet-sonarscanner 4.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants