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."
You might also find it useful to join the #jenkins IRC channel and bounce
questions/ideas off of kohsuke, cowboyd, jorgenpt or myself (rtyler).
Cheers
- R. Tyler Croy
--------------------------------------
Code: http://github.com/rtyler
Chatter: http://twitter.com/agentdero
[email protected]
pgpJDxLeAAsso.pgp
Description: PGP signature
