Any Suggestions would be appreciated. i have been trying to get the Json form submitted using Stapler.getSubmittedForm(). but not sure how to get the current instance of stapler in the builder Action class . the main intention as described above is to read the config values of multiple descriptors.
On Monday, 29 October 2018 17:20:58 UTC+5:30, Nikhil Bhoski wrote: > > Hi > > I am following ui-samples plugin to create a dynamic drop down. i have as > many classes as my dropdown list options. for each custom descriptor i > include respective config.jelly. My question is how can i access the values > of custom config UI elements in my actual Action class .which extends > Builder > > > eg > > > public class MyBuilder extends Builder implements SimpleBuildStep{ > @DataBoundConstructor > MyBuilder(Sting xyz){ > > this.xyz = xyz; > } > > > @Extension > public static class DescriptorImpl extends BuildStepDescriptor<Builder> { > } > > // i have followed ui-example and created custom descriptor and class > which extends those as below > > public static class Custom extends TypeList { > private String runCustom; > @DataBoundConstructor public Custom(String runAutomatic) { > super("Custom"); > this.runCustom = runAutomatic; > } > @Extension > public static final class DescriptorImpl extends TypetDescriptor { > > @Override > public String getDisplayName() { > // TODO Auto-generated method stub > return "Custom"; > } > > } > > > I need to access the data bound values from class Custom in MyBuilder and > vice versa . how can i do that > > I am also trying to read the Stapler request JSON object . but not finding > a way that i could read the JSON form data in Action class > > > Regards > Nikhil > > > > > -- 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 jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c8dd1510-f9ef-4678-9c4b-7715903f6a8a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.