Meanwhile I know a bit more precise what I would like ;-) The ssl-slaves plugin maintains a list of ssh connections which I could use to open tunnels, at least it seems so.
However, getting the plugin instance is difficult. This fails: Plugin sshSlavesPlugin = Hudson.getInstance() .getPlugin("ssh-slaves"); because the Hudson instance is null in the HudsonRemoteControlPool. When exactly can I expect a valid Hudson instance? Within an @Extension that seems to be the case, but I need it in the remote control pool. Who would be the right person for the ssl-slaves Plugin? Stephen Connolly is the @author. Does anyone know how to contact him? Best regards, Dietrich Schulten On 22 Feb., 12:22, Emanuele Zattin <emanue...@gmail.com> wrote: > Hmm... I was proposed that by Kohsuke... his example in particular was: > > Shell s = project.getBuildersList().get(Shell.class) > > BR, > > Emanuele Zattin > --------------------------------------------------- > -I don't have to know an answer. I don't feel frightened by not > knowing things; by being lost in a mysterious universe without any > purpose — which is the way it really is, as far as I can tell, > possibly. It doesn't frighten me.- Richard Feynman > > On Wed, Feb 22, 2012 at 11:39 AM, Ullrich Hafner > > > > > > > > <ullrich.haf...@gmail.com> wrote: > > I think this approach is quite fragile (well it works but may break very > > soon...). > > > I would suggest that you talk with the author of the plug-in to see if > > he could add an extension point for those properties. > > > Ulli > > > On 02/22/2012 11:12 AM, Emanuele Zattin wrote: > >> Let's suppose you have a Project object you want the instance of a > >> particular Publisher that job is configured for... then you can: > > >> MyPublisher = Iterables.filter(p.getPublishers().values(), > >> Predicates.instanceOf(MyPublisher.class)); > > >> I hope this helps. > > >> BR, > > >> Emanuele Zattin > >> --------------------------------------------------- > >> -I don't have to know an answer. I don't feel frightened by not > >> knowing things; by being lost in a mysterious universe without any > >> purpose — which is the way it really is, as far as I can tell, > >> possibly. It doesn't frighten me.- Richard Feynman > > >> On Wed, Feb 22, 2012 at 11:06 AM, dschulten > >> <dietrich.schul...@googlemail.com> wrote: > >>> Hi, > > >>> I am looking intohttps://issues.jenkins-ci.org/browse/JENKINS-6964 > >>> (Selenium plugin can't start RCs on slaves.) where Kohsuke proposed to > >>> tunnel the Selenium communication. > > >>> In order to establish the tunnel, I would like to read the > >>> configuration of the slave and get SSH credentials from there. > > >>> The ssh-slave plugin persists the slave credentials for its own use, > >>> but is it possible to access this information from other plugins? If > >>> so, how? > > >>> Best regards, > >>> Dietrich