Skip to content

Instantly share code, notes, and snippets.

@whittlec
Last active April 25, 2024 20:56
Show Gist options
  • Save whittlec/6112643 to your computer and use it in GitHub Desktop.
Save whittlec/6112643 to your computer and use it in GitHub Desktop.
Install plugins to Jenkins via script console
for (plugin in ["ant",
"artifactdeployer",
"build-failure-analyzer",
"build-name-setter",
"build-pipeline-plugin",
"build-timeout",
"claim",
"clone-workspace-scm",
"cobertura",
"collapsing-console-sections",
"conditional-buildstep",
"configurationslicing",
"copy-to-slave",
"credentials",
"cvs",
"disk-usage",
"ec2",
"email-ext",
"external-monitor-job",
"git",
"git-client",
"global-build-stats",
"gravatar",
"groovy-postbuild",
"javadoc",
"jobConfigHistory",
"ldap",
"mailer",
"mask-passwords",
"maven-plugin",
"openid",
"pam-auth",
"parameterized-trigger",
"run-condition",
"shelve-project-plugin",
"ssh-credentials",
"ssh-slaves",
"subversion",
"svn-release-mgr",
"token-macro",
"translation",
"view-job-filters",
"ws-cleanup"]) {
e = Hudson.instance.updateCenter.getPlugin(plugin).deploy().get().getError()
if (e != null)
println e.message
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment