Ah right! I also had issues with embedding one forms into other forms. Note, JobProperty shouldn’t be available for all jobs by default, so you would need some tricks (you may search for existing plugins) or require to some latest core where Jesse implemented OptionalJobProperty that doesn’t render body by default.
> On Mar 5, 2016, at 19:05, 'konrad' via Jenkins Developers > <[email protected]> wrote: > > Okay, I have the solution. You can't use f:entry inside a f:repeatable. If > you do it, that will destroy the generated HTML and jenkins repeatable.js > (line 112) can't find the div with class 'repeatable-insertion-point' as it > is outside of 'repeated-container' div. > > Kanstantsin, how can I access my JobProperty instance from the config.jelly? > > This is my property class: > > public class MyJobProperty extends JobProperty<AbstractProject<?, ?>> > { > private boolean isMyProject; > > public String getTest() > { > return "test"; > } > > @Extension > public static class DescriptorImpl extends JobPropertyDescriptor > { > @Override > public JobProperty<?> newInstance(StaplerRequest req, JSONObject > formData) throws FormException > { > return super.newInstance(req, formData); > } > > @Override > public String getDisplayName() > { > return "..."; > } > > public String getTest() > { > return "ttest"; > } > } > } > > In my config.jelly I know I can do a ${descriptor.test} and I get "ttest". > But I would like to do something like ${jobProperty.test}. > > -- > You received this message because you are subscribed to a topic in the Google > Groups "Jenkins Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/jenkinsci-dev/NBRtnkAfDbU/unsubscribe > <https://groups.google.com/d/topic/jenkinsci-dev/NBRtnkAfDbU/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/fd19b6c7-c7b1-4e23-bdde-843a7ed52849%40googlegroups.com > > <https://groups.google.com/d/msgid/jenkinsci-dev/fd19b6c7-c7b1-4e23-bdde-843a7ed52849%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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/1C3D76A0-0C50-4379-952D-799A7C4F6CD1%40gmail.com. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Message signed with OpenPGP using GPGMail
