Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8934

Add a way to set up port forwards to EC2 instance when connecting.

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • ec2-plugin
    • 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.

          [JENKINS-8934] Add a way to set up port forwards to EC2 instance when connecting.

          Chris Manson added a comment -

          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.

          Chris Manson added a comment - 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.

            kohsuke Kohsuke Kawaguchi
            wselwood william selwood
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: