Hi, On Mar 17, 2012, at 11:28 PM, R. Tyler Croy wrote:
> > On Fri, 16 Mar 2012, Rhett Sutphin wrote: > >> I got past this issue. Here's what I did, in case anyone else has the same >> problem. First, I upgraded my plugin's dependency to ruby-runtime 0.9 and I >> upgraded jpi's development Jenkins instance to 1.455. I set up my action >> like so: >> >> class BundledGems >> include Jenkins::Model::Action >> >> # ... >> end >> >> and I registered a proxy for it by hand: >> >> class BundledGemsProxy >> include Jenkins::Plugin::Proxies::Action >> proxy_for BundledGems >> end >> >> Then in my publisher's perform method I did what I had outlined in my >> previous message: >> >> def perform(build, launcher, listener) >> # ... >> build.native.add_action(Jenkins.plugin.export(BundledGems.new(...))) >> end >> >> I'm now having a problem rendering the view for the action >> (org.jruby.exceptions.RaiseException: (NameError) uninitialized constant >> Rack::VERSION) but I'll post with more details if I can't figure it out. > > As somebody also developing with the Ruby plugin support, if you don't mind > updating a few wiki pages, I think it'd be great to start collecting a list of > "how do I do X." That's a great idea. I'll have to hold off because it turned out the solution above didn't work as well as I thought -- it results in builds serializing in a way that looks correct, but the ruby-based action proxy (BundledGemsProxy) doesn't deserialize as an instance that implements hudson.model.Action and so prevent the job from being loaded when Jenkins restarts. I'm still looking into it, but it will probably be a couple of days before I get back to it. > > You might also find it useful to join the #jenkins IRC channel and bounce > questions/ideas off of kohsuke, cowboyd, jorgenpt or myself (styler). Thanks for the suggestion. I'll drop by when I get back to working on the plugin. BTW: just for reference, I've published the in-progress plugin[1]. Rhett [1]: https://github.com/NUBIC/bundle-recorder-jenkins-plugin > > > Cheers > - R. Tyler Croy > -------------------------------------- > Code: http://github.com/rtyler > Chatter: http://twitter.com/agentdero > [email protected]
