15 lines
283 B
Groovy
15 lines
283 B
Groovy
|
#!groovy
|
||
|
|
||
|
import jenkins.model.Jenkins;
|
||
|
|
||
|
pm = Jenkins.instance.pluginManager
|
||
|
uc = Jenkins.instance.updateCenter
|
||
|
|
||
|
pm.doCheckUpdatesServer()
|
||
|
|
||
|
["git", "workflow-aggregator"].each {
|
||
|
if (! pm.getPlugin(it)) {
|
||
|
deployment = uc.getPlugin(it).deploy(true)
|
||
|
deployment.get()
|
||
|
}
|
||
|
}
|