Example Integer Field in Jenkins Jelly

50 views
Skip to first unread message

the.n...@gmail.com

unread,
Jun 17, 2021, 5:38:39 PM6/17/21
to Jenkins Developers
Hi All,

I'm trying to do an integer validation in a freestyle and pipeline plugin. In the past, the doCheckfield(@QueryParameter String value) would get called, but it isn't any longer. I'm a bit confused about this. Is there a new mechanism available or some dependency to turn on use of these verifiers? The checks do appear to be invoked during the test suite, but not in a live Jenkins at 2.281.

Thanks,
Randall

Ullrich Hafner

unread,
Jun 18, 2021, 6:49:40 AM6/18/21
to JenkinsCI Developers
--
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-de...@googlegroups.com.
To view this discussion on the web visit a.

the.n...@gmail.com

unread,
Jun 21, 2021, 3:27:26 PM6/21/21
to Jenkins Developers
It does not appear to be the same situation as  https://issues.jenkins.io/browse/JENKINS-65585, and yes, I've tried @POST. What I thought might be happening is that the validation methods are in the base class, but that appears not to matter. I've checked the spelling pretty carefully. It would be nice to know exactly where the resolution of the check is done, because single stepping through the Jenkins run-time is not providing any wisdom. The check is not being invoked/found after Apply on a freestyle project or when configuring the plugin. Getters and setters are all fine, but the validation methods for any fields, including the ones that used to work, seem to be ignored. I can't revert to the version of Jenkins where this was last known to work definitively (around 2.74) because of dependencies.

the.n...@gmail.com

unread,
Jun 21, 2021, 4:14:39 PM6/21/21
to Jenkins Developers
I found the problem. The doCheck method was with the getter/setter, not in the Descriptor class. Simple fix.
Reply all
Reply to author
Forward
0 new messages