Hi, has there been any movement on this?
I'm currently trying the following:
below is the JAVA_OPTS string I'm passing in
SLAVE_JAVA_OPTS="-Dhttp.proxyHost=http: "-Dhttp.proxyPort=8080" "-Dhttps.proxyHost=http://someawesomeproxy.com" "-Dhttps.proxyPort=8080" "-Dhttp.nonProxyHosts=localhost|127.0.0.1|.someinternaldomain.com|.someinternaldomain2.com|jenkins-master"
For posterity I'm also including environment variables that are in defaults for more linux environments:
HTTP_PROXY=http:HTTPS_PROXY=http:NO_PROXY=.someinternaldomain.com,.someinternaldomain2.com,jenkins-master
Here is where I actually try to launch the agent:
(exec java ${SLAVE_JAVA_OPTS} -jar /bin/swarm-client.jar -labels jobs-builder -disableSslVerification -executors 5 -master ${JENKINS_MASTER} -username ${JENKINS_SLAVE_USER} -password ${JENKINS_SLAVE_PASS} -name swarm -mode exclusive)
Here is the error I get when trying to run the agent:
Error: Could not find or load main class "-Dhttp.proxyHost=http:..someawesomeproxy.com"
I notice the description doesn't include https.proxyHost or http.nonProxyHosts. If this is to be properly implemented the aforementioned items must also be added.
My use case is a little different the original reporter. I dont need to use a proxy to talk to the Jenkins Master. I need the slaves to use the proxy when executing builds in the jenkins master/slave scenario. Right now my builds fail that need to reach the public internet, and trying to add in a proxy for the JVM to use for all requests causes the swarm agent to fail because it doesn't recognize the variables I'm passing in.
Hi, has there been any movement on this?
I'm currently trying the following:
below is the JAVA_OPTS string I'm passing in
SLAVE_JAVA_OPTS="-Dhttp.proxyHost=http://someawesomeproxy.com" "-Dhttp.proxyPort=8080" "-Dhttps.proxyHost=http://someawesomeproxy.com" "-Dhttps.proxyPort=8080" "-Dhttp.nonProxyHosts=localhost|127.0.0.1|.someinternaldomain.com|.someinternaldomain2.com|jenkins-master"
For posterity I'm also including environment variables that are in defaults for more linux environments:
Here is where I actually try to launch the agent:
Here is the error I get when trying to run the agent:
Error: Could not find or load main class "-Dhttp.proxyHost=http:..someawesomeproxy.com"
I notice the description doesn't include https.proxyHost or http.nonProxyHosts. If this is to be properly implemented the aforementioned items must also be added.
My use case is a little different the original reporter. I dont need to use a proxy to talk to the Jenkins Master. I need the slaves to use the proxy when executing builds in the jenkins master/slave scenario. Right now my builds fail that need to reach the public internet, and trying to add in a proxy for the JVM to use for all requests causes the swarm agent to fail because it doesn't recognize the variables I'm passing in.