I've got a NodePropertyDescriptor, but it should be the same thing:
In the descriptor, override the configure function, grab the configs out of
the json data, and store them in member variables of your descriptor object.
public synchronized boolean configure(StaplerRequest req,
JSONObject formData) throws FormException {
JSONObject config = formData.optJSONObject("enabled");
policyURL = config.optString("policyURL","");
etc.
On Tue, Feb 25, 2014 at 8:07 AM, Emmanuel DEMEY <[email protected]>wrote:
> Hi everyone,
>
> First I want to say sorry for the newbie question I am going to ask. I am
> developing my first Jenkins plugin, and I have some trouble with one thing.
>
> In my BuildWrapperDescriptor class, I need to get the value of Environment
> variable that I have set in the Configure page of my Jenkins server. What
> is the best way to do that ?
>
> Thanks a lot
>
> Manu
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
Marc MacIntyre
--
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].
For more options, visit https://groups.google.com/groups/opt_out.