Change By: ikedam (02/Nov/14 2:47 AM)
Description: The field name used to specify class names in [structured form|https://wiki.jenkins-ci.org/display/JENKINS/Structured+Form+Submission] is changed to {{$class}} from {{stapler-class}} and {{kind}}.
Plugins using `stapler-class` or `kind` should follow that change as they may not get to work in future versions of Jenkins.

They doesn't stop working immediately as Jenkins keeps the backward compatibility (it continues to send and receive {{stapler-class}} and {{kind}}).

Instructions for plugins:
* For plugins using {{stapler-class}} or {{kind}} in jelly files
** You should use proper tags provided by Jenkins core, such as descriptorRadioList and dropdownDescriptorSelector.
** {{lib/form/class-entry}} will be provided in the next version of Jenkins.
* For plugins using {{stapler-class}} or {{kind}} in Java codes
** Do like this:
{code}
String clazzName = formData.optString("$class", null);
if (clazzName == null) {
    // Fall back on the legacy stapler-class attribute.
    clazzName = formData.optString("stapler-class", null);
}
{code}
** Jenkins core should provide an alternate way in a future release so that plugins no longer need to access {{stapler-class}} and {{$class}}.

See:
* https://github.com/stapler/stapler/pull/39
* https://github.com/jenkinsci/jenkins/pull/1443
Component/s: authorize-project-plugin
Component/s: build-timeout-plugin
Component/s: extensible-choice-parameter-plugin
Component/s: flexible-publish-plugin
Component/s: update-sites-manager-plugin
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" 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/d/optout.

Reply via email to