On Sat 10 Mar 2018 at 15:04, Daniel Beck <[email protected]> wrote:

>
> > On 9. Mar 2018, at 09:43, Johann <[email protected]> wrote:
> >
> > guys nobody can help me? Should I show some more of my code


Global.jelly is to configure the descriptor rather than the instance

To use global.jelly you need to expose the getters and setters on your
descriptor. Then you need to override the configure method on your
descriptor to parse the submitted json (typically you can just say
something like req.bind(this,json) if you keep your descriptor “simple” and
then call save()... you’ll need to override the descriptor’s constructor to
call load() too)

The more modern alternative is to use the GlobalConfiguration stuff... that
will have you using a regular config.jelly but iirc you still need some
sort of configure(req,json) method to pull the top level in


>
> I think this would be useful.
>
> --
> 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/720A9221-83C1-4D26-8481-DD55FBC1A0FA%40beckweb.net
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from my phone

-- 
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/CA%2BnPnMz1MXsvn8ap7wm54A%3D%2BVx6pxQFzeZk3UWh%2BZxB1QG5EeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to