Hi Daniel,

Thanks for responding.  A little more research on my part is showing the 
change is occuring when moving from Swarm 2.0 client to Swarm 2.2. 
 Possibly a result of this change in Swarm 2.1.

   - Updating jenkins remoting dependency. Swarm client now matches the 
   jenkins-remoting version in Jenkins-1.625.3 LTS


Basically the issue is that the Swarm client in 2.1+ seems to be taking 
some part of the proxy information from the master and ignoring or 
otherwise mangling the environment variables.  It may be precedent related. 
 With Swarm 2.0 client, I am successfully setting the bash variables for 
http_proxy and no_proxy before launching the client.  In this 
configuration, everything works well.

When using Swarm 2.2, the client seems to be ignoring the bash settings and 
getting proxy settings from somewhere else (I'm assuming the master).  I'm 
not sure if it is getting all of the settings though, since my master has 
proxy settings that include a username and password.  The error that I 
receive leads me to think that the Swarm 2.2 client is getting the proxy 
url and port, but not the username and password creds.

See again from the error highlighted below..

vantage-jenkins-slave_1   | Failing to obtain 
http://XXXXXXXXX.com/computer/d73296bbedb4-9b67a324/slave-agent.jnlp 
<http://xxxxxxxxx.com/computer/d73296bbedb4-9b67a324/slave-agent.jnlp>
vantage-jenkins-slave_1   | java.io.IOException: Failed to load 
http://XXXXXXXXX.com/computer/d73296bbedb4-9b67a324/slave-agent.jnlp 
<http://xxxxxxxxx.com/computer/d73296bbedb4-9b67a324/slave-agent.jnlp>: 407 
Proxy Authentication Required
vantage-jenkins-slave_1   |     at 
hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:275)
vantage-jenkins-slave_1   |     at 
hudson.plugins.swarm.SwarmClient.connect(SwarmClient.java:275)
vantage-jenkins-slave_1   |     at 
hudson.plugins.swarm.Client.run(Client.java:138)
vantage-jenkins-slave_1   |     at 
hudson.plugins.swarm.Client.main(Client.java:88)
vantage-jenkins-slave_1   | Waiting 10 seconds before retry

On Tuesday, August 23, 2016 at 3:31:42 PM UTC-4, Daniel Beck wrote:
>
>
> > On 23.08.2016, at 20:31, Tim Downey <timothy...@gmail.com <javascript:>> 
> wrote: 
> > 
> > Am I understanding correctly that the slave should be picking up the 
> proxy settings from the master?  If so, is it supposed to be picking it up 
> from the preferences in the Manage Plugins panel?  Is it supposed to be 
> somewhere else. 
> > 
>
> Slaves are not supposed to inherit environment variables from master 
> unless explicitly configured that way. I'd check the slave configuration 
> (.bash_profile, /etc/profile, …) for these.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/811e187a-f6b4-4ec4-bebe-175e89d3031f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to