Hi,

I was adding some features in the lab manager plugin to better support our 
in-house installation. In order to have Jenkins connect to the slave 
machines inside the lab manager, we use the ssh launcher. Since the IP 
address of this machines changes every time the vm get deployed, I need to 
update the host attribute of the ssh launcher before the slave will be 
started.
But updating the host attribute doesn't work, since there is no way of 
changing the host attribute of the SSHLauncher class. My workaround at this 
time, is to create a new instance of the SSHLauncher, copy all the 
information from the original SSHLauncher and use this new instance to 
start the slave machine.
This workaround does have one significant drawback: the new host IP will 
never show up in the UI (since this instance won't get used from the view). 
This means you won't ever see what's the current IP that is used by the 
launcher.

So my question: is there any reason why the host attribute of SSHLauncher 
is read-only? Or can this safely changed to be a read/write attribute?

Thanks,
 Ingo

Reply via email to