Would anyone have any pointers to configuring the GitHub Organization
Item/Job with Groovy so that when my Jenkins instance starts up, it reads
the
$JENKINS_HOME/init.groovy.d/
folder and configures a default job to perform GitHub Organization scanning
for Jenkinsfiles?
I've got most of the
Love these answers that aren't finished.
Victor Martinez, do you have an example of what you're talking about?
On Friday, April 20, 2018 at 4:43:24 PM UTC-5, geoffroy...@gmail.com wrote:
>
> Hello
> just in case, could someone share a groovy sample script to achieve this?
> I guess you have to
n the updateCenter called
getPlugin(String name, and VersionNumber version)
-
https://javadoc.jenkins.io/hudson/model/UpdateCenter.html#getPlugin-java.lang.String-hudson.util.VersionNumber-
I'm not sure where to find the VersionNumber or how to get that to give to
this method.
On Friday, December 14,
ib",
"ssh-slaves",
"subversion",
"timestamper",
"ws-cleanup"
].each {
if (! pm.getPlugin(it)) {
deployment = uc.getPlugin(it).deploy(true)
deployment.get()
}
activatePlugin(pm.getPlugin(it))
}
Currently, it makes no sense. To
eploy(true)
deployment.get()
}
activatePlugin(pm.getPlugin(plugin))
}
// Do a simple verification that the plugins did deploy, then restart Jankins
if (deployed) {
Jenkins.instance.restart()
}
Now I can pin the version of the plugins, and export the GitHub Source
Branch job config and