I figured out the issue, and actually got version pinning down for the
Jenkins Plugins.
#!groovy
import jenkins.model.Jenkins
import hudson.util.VersionNumber
// Create a reference to the PluginManager Class.
pm = Jenkins.instance.pluginManager
// Create a reference to the UpdateCenter Class.
Well, now I don't know why my script isn't working. I had to modify it to
remove the version numbers, just to get the thing to work. The blog,
https://qiita.com/aespinosa/items/5d791310f0cb436eb71f works if I copy and
paste their example,
import jenkins.model.Jenkins;
pm =
What I ended up doing is using what I had previously to setup Jenkins,
login, and install the Job Configuration History plugin, and got the output
of the config.xml. For whatever reason, doing the
http://JENKINSURL:8080/job/NAME/config.xml would just result in a blank
page, and not actually
Since you're already starting from a JENKINS_HOME directory, you may find
it easier to store the job definition rather than attempting to create the
job from a groovy script. Refer to
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