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

EC2 provides instance info and a way to use it in scripts run on the master to control the slave.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major Major
    • ec2-plugin
    • None
    • Platform: All, OS: All

      I am looking for a way to get the instance information for a given EC2
      provisioned slave node at launch time and use this information in script prior
      to running jobs on the slave. The specific use case is to launch an ssh session
      from the Hudson master to the slave and open one or more reverse tunnels from
      the slave to the master's network.

      I looked at this just a bit. It doesn't look like the com.trilead.ssh2 lib can
      do tunneling. I think a good way to implement this would be to expose the
      properties in the the typica instance class (dnsname, etc) to the environment
      and provide a shell script (similar to a build step from a job?) that runs on
      the hudson master. That script could run ssh on the master and connect to the
      slave using the exposed properties.

            kohsuke Kohsuke Kawaguchi
            jjv jjv
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: