Skip to content

RTECO-1043 - Add HTTP_NOPROXY support in jfrog azure devops pipelines#600

Closed
agrasth wants to merge 2 commits intojfrog:devfrom
agrasth:FixNoProxy
Closed

RTECO-1043 - Add HTTP_NOPROXY support in jfrog azure devops pipelines#600
agrasth wants to merge 2 commits intojfrog:devfrom
agrasth:FixNoProxy

Conversation

@agrasth
Copy link
Copy Markdown
Contributor

@agrasth agrasth commented Apr 15, 2026

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used npm run format for formatting the code before submitting the pull request.

Summary

  • Fixed a backward compatibility regression introduced in v1.12.8 where forwardProxyToEnv() forwarded Agent.ProxyUrl
    to HTTP_PROXY/HTTPS_PROXY but silently dropped Agent.ProxyBypassList, causing internal Artifactory connections to
    be routed through the corporate proxy unexpectedly.
  • forwardProxyToEnv() now also forwards Agent.ProxyBypassListNO_PROXY so hosts configured for proxy bypass on
    the ADO agent are respected by JFrog CLI without any manual pipeline changes.

Changes

  • jfrog-tasks-utils/utils.js — Added NO_PROXY forwarding from Agent.ProxyBypassList in forwardProxyToEnv().
    Honors existing NO_PROXY/no_proxy env vars (no override). Handles empty list and invalid JSON gracefully.
  • tests/proxyConfigTest.js — Added 4 new tests covering: bypass list forwarded correctly, existing NO_PROXY not
    overridden, empty list produces no env var, invalid JSON warns and skips. Updated clearProxyVars() to clean
    NO_PROXY/no_proxy between tests.

@agrasth agrasth changed the base branch from v2 to dev April 15, 2026 06:26
@agrasth agrasth added the safe to test Approve running integration tests on a pull request label Apr 15, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Apr 15, 2026
@agrasth agrasth changed the title Added NO_PROXY support RTECO-1043 - Add HTTP_NOPROXY support in jfrog azure devops pipelines Apr 15, 2026
@agrasth agrasth added the safe to test Approve running integration tests on a pull request label Apr 15, 2026
@github-actions github-actions Bot removed the safe to test Approve running integration tests on a pull request label Apr 15, 2026
…ually wrote HTTP_PROXY or

  HTTPS_PROXY. If the user had pre-existing proxy env vars (pointing to their own proxy), we return early without touching
   NO_PROXY. The agent's bypass list only applies to the agent's proxy.
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

Successfully merging this pull request may close these issues.

1 participant