Re: How can I install a specific version of a plugin using pluginManager?

2018-03-13 Thread Daniel Beck
> On 13. Mar 2018, at 15:17, Guy Matz wrote: > > Any ideas? Not possible as the JSON metadata only contains the latest version (that's compatible with your Jenkins). You can upload a specific plugin file though. > P.S. - SHould I have sent this to the jenkins-users

How can I install a specific version of a plugin using pluginManager?

2018-03-13 Thread Guy Matz
I can do this sort of thing (improvements are welcome!): plugin = 'github' instance = Jenkins.getInstance() pm = instance.getPluginManager() uc = instance.getUpdateCenter() plugin = uc.getPlugin(plugin_name) plugin.deploy() But would like to be able to specify the version of plugin, e.g.