新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user