ParametersDefinitionProperty allows to specify multiple Parameter 
definitions.
This is the only way to correctly generate the data structure for Jenkins 
jobs

вторник, 3 мая 2016 г., 17:52:09 UTC+2 пользователь icetree521 написал:
>
> For example, I would like to add 2 build parameters from java code of my 
> plugin. 
>
> StringParameterDefinition spd = new StringParameterDefinition("id", "");
>
> ParametersDefinitionProperty spdp = new ParametersDefinitionProperty(spd);
> p.addProperty(spdp);
>
>
> StringParameterDefinition spd1 = new StringParameterDefinition("email", ""
> );
>
> ParametersDefinitionProperty spdp1 = new ParametersDefinitionProperty(spd1
> );
>
> p.addProperty(spdp1);
>
> But the problem is the latter parameter *email* will override the former *id 
> *and only the *email* parameter was created. * D*oes anyone know how to 
> fix this issue ?
>
>

-- 
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/afc16db9-9ebf-4f75-89ab-110ba17ecd3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to