This is probably a bit of a newbie question, but I haven't been able to find a good answer. What is the proper way to implicitly call an existing plugin from within one I'm developing?
For example, just to play around with the idea, I was looking at the htmlpublisher plugin. Let's say I know that my build is going to create an HTML report, so rather than have a user also enable the htmlpublisher plugin as a post-build step, I just want to do it myself. I have it in my dependencies in my pom.xml, and Jenkins goes and downloads it fine (it does show up as an option in my project configuration for post-build step, and I can run it standalone and everything works properly. So I tried just simply instantiating an htmlpublisher object, and then calling it's perform method. This 'almost' works. The plugin does run, and all the proper files are being created (perform method itself returns true), however the action doesn't seem to be recognized properly, the icon/url doesn't become visible on the project page.
What am I missing here? Or am I doing this entirely incorrectly?
Thanks in advance!