-
New Feature
-
Resolution: Unresolved
-
Major
-
None
It would be very useful to be able to set up port forwards to/from the remote EC2 instances from/to the Jenkins machine.
We could do with this because our svn server is not accessible outside of our office network. If we could forward a port on the remote machine back down our ssh tunnel to the Jenkins machine (which can see the svn server) it would make things a lot easier.
On the node config there should be an option to set a list of port forwards, either forward or backwards, setting the two port numbers and an optional target url.
This feature is not actually that hard to achieve. We have hacked the ec2-plugin to forward our svn repo onto the Amazon EC2 instance (see the code here https://github.com/mansona/ec2-plugin on the portforward branch).
Obviously this code is a hack. This will forward the svn port to 192.168.1.5 in the local nat i.e. on the network that the jenkins head server is located. We would like to see this included into the UI but we didn't have time to work on that quite yet.