slave hostname

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

slave hostname

Tim Hepner

I’d like to acquire the hostname of the current slave.  I’m working in the checkout method of a class derived from SCM.  There currently doesn’t appear to be a function to do this.  I’ve tried InetAddress.getLocalHost().getHostName() but this code always returns the master’s hostname.  Any ideas?

            Thanks,

                        Tim

Reply | Threaded
Open this post in threaded view
|

Re: slave hostname

stephenconnolly
You'll need to to a remote execution on the FilePath.

On Fri, May 23, 2008 at 1:18 AM, Tim Hepner <[hidden email]> wrote:

I'd like to acquire the hostname of the current slave.  I'm working in the checkout method of a class derived from SCM.  There currently doesn't appear to be a function to do this.  I've tried InetAddress.getLocalHost().getHostName() but this code always returns the master's hostname.  Any ideas?

            Thanks,

                        Tim