> 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
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.