Hello Jenkins Folks, I have case where Descriptor class of extension point Publisher has trouble getting parameter for Form validation where I would like to pass parameter (let say any object )along with @QueryParameter which coming from config.jelly from the job configuration
Can I write something as below? where I can compare object with parameter received with from config.jelly and used the same for Form Validation public static final class DescriptorImpl extends BuildStepDescriptor<Publisher>{ public FormValidation doCheckUploadPath(Object obj, @QueryParameter Object objParam) throws IOException { if (obj.equals(objParam)) retrun FormValidation.ok(); else return FormValidation.error("passed parameter is not matching, validation failed !!!"); } } I referred https://wiki.jenkins-ci.org/display/JENKINS/Basic+guide+to+Jelly+usage+in+Jenkins where I could NOT find any references and Jelly documentation also doesnt say anything about such possibility. Has anybody idea about Formvalidation in descriptor where you can play with object and Query'Parameter..? Looking forward for your comments... Cheers Dharmesh