Re: How can I install a specific version of a plugin using pluginManager?
> On 13. Mar 2018, at 15:17, Guy Matzwrote: > > 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 mailing list? Only if you knew what the answer would be :-) Internal API questions like in your email could reasonably go either way, but in this case the answer is the same whether Jenkins CLI, UI, or internal APIs. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/FFDC7328-2143-4DCE-828E-6F002204E1EC%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
How can I install a specific version of a plugin using pluginManager?
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. github:1.29.0 Any ideas? Thanks a lot, Guy P.S. - SHould I have sent this to the jenkins-users mailing list? -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CABnTgtUbQFG7zu5Sw8E7MgCOK9J4-FrGxKM8CnN3hAutnKwfRw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.