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 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/fd19b6c7-c7b1-4e23-bdde-843a7ed52849%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.