Configure an agent with proxy

    Your query search resulted in no results.

    Configure a GoCD agent to connect to a server through a proxy server.

    Note: Using this feature requires atleast version 17.11.0 of the GoCD server and agent.

    Proxy support is configured with GoCD agents by passing certain system properties to the Java Virtual Machine (JVM) on startup. These properties follow the conventions defined by the JVM:

    • http.proxyHost (default: )
    • http.proxyPort (default: 80)
    • http.nonProxyHosts (default: localhost|127.*|[::1])
    • https.proxyHost
    • https.proxyPort
    • socksProxyHost
    • socksProxyPort (default: 1080)
    • socksProxyVersion (default: 5)

    If your proxy server is running on port 3128, you will need to setup the following system properties: -Dhttp.proxyPort=3128 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts=localhost

    To avoid using proxies for certain hosts, you may use http.nonProxyHosts which is a list of hostnames or ip addresses separated by a pipe character(|), you may include a wildcard character (*) for matching. For example:


    Note: that the pipe character (|) may wildcard (*) may need special escaping on Linux.

    Configuring an agent on Linux

    To setup the agent on linux, edit the file /etc/default/go-agent and add the following:

    PROXY_SETTINGS=" -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts='localhost|*'"

    Configuring an agent on Windows

    Follow the instructions to add a new property for GoCD agents setup on windows, such as:" -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts='localhost|*'"
    set.AGENT_STARTUP_ARGS=%AGENT_STARTUP_ARGS% -Dhttps.proxyPort=3128 '-Dhttp.nonProxyHosts=localhost|*'