jenkinsci / jenkins.rb

Deprecated, see https://www.jenkins.io/jep/7
393 stars 83 forks source link

Associate a Descriptor to the build wrapper #118

Open FWFabio opened 9 years ago

FWFabio commented 9 years ago

This may be a dumb question but I can't seem to find the way to associate a Descriptor to my Jenkins::Tasks::BuildWrapper subclass. I have a dropdown menu in my interface that is backed by the model. Unfortunately no matter how I implement my methods I always get:

WARNING: Caught exception evaluating: descriptor.calcFillSettings(field,attrs) in /job/drfgre/configure. Reason: java.lang.IllegalStateException: class org.jruby.proxy.hudson.model.Descriptor$Proxy0 doesn't have the doFillDevcenter_credentialsItems method for filling a drop-down list

What's the right way to register a Descriptor with a build wrapper in ruby?

soofff commented 8 years ago

hi,

i have implemented a descriptor with an dofill method but i got the same issue like you.

best regards felix

deogracia commented 8 years ago

Same goes for me, too