Stapler.*getCurrentRequest <http://stapler.kohsuke.org/apidocs/org/kohsuke/stapler/Stapler.html#getCurrentRequest%28%29>* ().*findAncestorObject <http://stapler.kohsuke.org/apidocs/org/kohsuke/stapler/StaplerRequest.html#findAncestorObject%28java.lang.Class%29>* (Job.class <http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true> )
/B On Thu, Mar 19, 2015 at 4:18 PM, Ivo Bellin Salarin < [email protected]> wrote: > Hi everybody, > > In the config.jelly of my custom publisher, I would like to display a > text. This text should contain the name of the Project to which the > publisher is attached. > > I have had a look at the Publisher javadoc, but I can't find any > information related to the containing Job (out of the *perfom* function). > > Can I obtain the name of the project to which the Publisher is attached? > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/CAPc4eF_WL60tmtRT%2ByuzNXGxrJcEGX0VknvLQ%2Bku%2BgStcC7NMQ%40mail.gmail.com > <https://groups.google.com/d/msgid/jenkinsci-dev/CAPc4eF_WL60tmtRT%2ByuzNXGxrJcEGX0VknvLQ%2Bku%2BgStcC7NMQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Robert Sandell *Software Engineer* *CloudBees Inc.* -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS0j6tegGr%2B7rFdG%2BCiC0EAia6O3FZzTryOpQ1Jntx%3Diaw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
