Honor proxy settings

See original GitHub issue

PR #62 already introduced proxy support by using getHttpProxyConfiguration in order to get the proxy settings used by the current agent.

Somehow the calls common.setProxy() are still commented out? Why?

Currently the task is unable to install the tfx-cli package behind a corporate proxy…

cc @jessehouwing

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
axelheercommented, Aug 26, 2020

Since I ran into this again, for further reference:

- pwsh: |
    Write-Host "##vso[task.setvariable variable=NPM_CONFIG_PROXY;]$env:AGENT_PROXYURL"
    Write-Host "##vso[task.setvariable variable=NPM_CONFIG_HTTPS-PROXY;]$env:AGENT_PROXYURL"
  displayName: 'Setup NPM proxy configuration'

- task: TfxInstaller@3
  inputs:
    version: 'v0.8.x'
  displayName: 'Install TFX'

- pwsh: |
    Write-Host "##vso[task.setvariable variable=NPM_CONFIG_PROXY;]"
    Write-Host "##vso[task.setvariable variable=NPM_CONFIG_HTTPS-PROXY;]"
  displayName: 'Reset NPM proxy configuration'

This sets the npm proxy just for the TFX installer…

0reactions
jessehouwingcommented, Sep 28, 2018

I can’t make it work “right”, generic proxy config with “everything through proxy” works, but many corps require fancy exclusions and other things. You can configure Node on the machine to handle your proxy correctly, you can set the environment variables, that way the task won’t have to deal with it at all. That’s currently my preferred stance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set up a proxy server | HUAWEI Support Global
Set up a proxy server · Click the Windows icon and then the Settings icon, and click Network & Internet. · Go to...
Read more >
How ICDx Honors Proxy Settings - TechDocs
How ICDx Honors Proxy Settings. Last Updated February 11, 2022. ICDx. honors the proxy settings in the. /etc/environment.
Read more >
Honor proxy settings · Issue #2479 - GitHub
Is there a way for the docker container to evaluate the settings on startup and modify the config accordingly?
Read more >
How to Use Android Proxy Settings | Tutorial - Smartproxy
Android proxy settings. 1. Open your Android's Settings. 2. Tap Wi-Fi. 3. Tap and hold the Wi-Fi Network Name. 4. Select Modify Network....
Read more >
How to set an Android proxy server for Wi-Fi networks
Learn how to change the proxy settings of your Wi-Fi network, on Android devices, including Samsung Galaxy. Set up the proxy hostname etc....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found