Researching this a bit more tonight...

It seems to only affect build actions, and seems to stem from the fact that Action is an interface rather than a class. You can't make the proxy class a subclass of the interface, and then it fails to cast the proxied object.

It works if you define your Proxy class like this:

module TestPlugin
  class TestProxy < Java.hudson.model.InvisibleAction
    include Jenkins::Model::DescribableProxy

    proxy_for TestAction
  end
end
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to