Advertisement
Guest User

install_plugin_via_groovy

a guest
Jul 14th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.35 KB | None | 0 0
  1. pluginShortName = "jabber"
  2. Jenkins.instance.updateCenter.getPlugin(pluginShortName).getNeededDependencies().each {
  3.     it.deploy()
  4. }
  5.  
  6. updateCenterJob = Jenkins.instance.updateCenter.getPlugin(pluginShortName).deploy()
  7.  
  8. if (Jenkins.instance.updateCenter.isRestartRequiredForCompletion()) {
  9.     hudson.model.Hudson.instance.doSafeRestart(null)
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement