Skip to content

Instantly share code, notes, and snippets.

@scbedd
Created June 2, 2023 00:26
Show Gist options
  • Save scbedd/e2f87de386057c8a916d543f252c896c to your computer and use it in GitHub Desktop.
Save scbedd/e2f87de386057c8a916d543f252c896c to your computer and use it in GitHub Desktop.
Updates to disable tool proxy in Java CI

Swap CI to Standalone Exe Only

TestProxyManager.java

Adjust function here

    private boolean proxyIsManual() {
        return Configuration.getGlobalConfiguration().get("PROXY_MANUAL_START") != null
    }

Then here.

        if (!proxyIsManual()) {
            TestProxyDownloader.installTestProxy(testClassPath);
        }

ci.tests.yml

Adjust code here to no longer run the proxy for you. Let the tests invoke. We still want to install so we can test-proxy restore -a <blah> before invoking the tests.

      - template: /eng/common/testproxy/test-proxy-tool.yml
        parameters:
          runProxy: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment