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 into https://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 >