Can we bundle more than one jenkins plugin into single installable plugin
18 views
Skip to first unread message
Jagadish Sethi
unread,
Nov 3, 2015, 1:32:40 AM11/3/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Hi All,
I have 10-15 required plugins to be installed in jenkins instance. To avoid confusion and process of a installing all, I want to bundle all the hpi files into single hpi file and then install only once so that all the plugins will be installed at a time.
In there any way or process to do it in jenkins ?
Thanks & Regards, Jagadish
Stephen Connolly
unread,
Nov 3, 2015, 6:52:39 AM11/3/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
If you are installing via the update center then that will all be
taken care of you automatically using the plugin dependencies.
If you are talking about manual upload then you would have to
hand-roll something...
I would have a plugin that doesn't depend on the 10-15 plugins rather
has dependencies with <scope>provided</scope><type>hpi</type> and then
bind the `hpi:bundle` goal to grab those plugins and copy them into a
directory in your plugin.
Finally you need to add an initializer or PluginImpl.start() that
calls through to PluginHelper.instance().refresh() and that should
dynamically load your plugins correctly for you.
Note: if you successfully walk the above path, please share the
skeleton of your wrapper plugin with the community