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.

Reply via email to