|
Hi,
I'm new to Jenkins and have the following problem. What do you think is the best way to configure in a Jenkins slave which is behind a gateway? To reach my test environment I need to go through a gateway. It would be great to somehow configure in the RemoteMachine (which is located behind the gateway) as a slave. Can I somehow configure in an ssh tunnel in Jenkins which could be used to reach the RemoteMachine? Example LocalMachine (Jenkins CI Server) <---(ssh)---> Gateway <---(ssh)---> RemoteMachine (TestServer) Thanks for the help! Gergo |
|
On Tue, Oct 16, 2012 at 12:50 PM, Gergo <[hidden email]> wrote:
> Hi, > > I'm new to Jenkins and have the following problem. What do you think > is the best way to configure in a Jenkins slave which is behind a > gateway? To reach my test environment I need to go through a gateway. > It would be great to somehow configure in the RemoteMachine (which is > located behind the gateway) as a slave. Can I somehow configure in an > ssh tunnel in Jenkins which could be used to reach the RemoteMachine? > > Example > LocalMachine (Jenkins CI Server) <---(ssh)---> Gateway <---(ssh)---> > RemoteMachine (TestServer) My jenkins machine is behind a firewall, and I use the -D option of ssh to set up a socks5 proxy I can point firefox to to get connected to jenkins HTH, Andrew > > Thanks for the help! > Gergo -- -- Andrew Melo |
|
In reply to this post by Gergo
Click the advanced button in the slave node configuration. There is a tunnel configuration option for you.
On Tuesday, October 16, 2012 10:50:33 AM UTC-7, Gergo wrote: Hi, |
|
Hi,
Thanks for the quick answers. I found the "Tunnel connection through" configuration parameter in the "Launch method -> Launch slave agents via Java Web Start". I really wanted something similar but in the "Launch method -> Launch slave agents on Unix machines via SSH". I came across these parameters: "Prefix Start Slave Command", "Suffix Start Slave Command". Sadly I had a really old version of Jenkins which was missing these very cool options. With these I could execute an ssh command just before the slave started. Thanks, Gergo On Oct 16, 7:01 pm, Bryan Hunt <[hidden email]> wrote: > Click the advanced button in the slave node configuration. There is a > tunnel configuration option for you. > > > > > > > > On Tuesday, October 16, 2012 10:50:33 AM UTC-7, Gergo wrote: > > > Hi, > > > I'm new to Jenkins and have the following problem. What do you think > > is the best way to configure in a Jenkins slave which is behind a > > gateway? To reach my test environment I need to go through a gateway. > > It would be great to somehow configure in the RemoteMachine (which is > > located behind the gateway) as a slave. Can I somehow configure in an > > ssh tunnel in Jenkins which could be used to reach the RemoteMachine? > > > Example > > LocalMachine (Jenkins CI Server) <---(ssh)---> Gateway <---(ssh)---> > > RemoteMachine (TestServer) > > > Thanks for the help! > > Gergo |
|
I dunno if it can or can't work, but give a try for $HOME/.ssh/config and ProxyCommand on master. Garami Gábor Sent from my T-Mobile G2 2012.10.28. 17:36, "Gergo" <[hidden email]> ezt írta:
Hi, |
| Powered by Nabble | Edit this page |
