Skip to content

Instantly share code, notes, and snippets.

@tankhuu
Last active August 31, 2022 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tankhuu/8e5c848c68b3ea0f08058979af677261 to your computer and use it in GitHub Desktop.
Save tankhuu/8e5c848c68b3ea0f08058979af677261 to your computer and use it in GitHub Desktop.
Jenkins Utilities
# Go to https://our-jenkins-url/script
Jenkins.instance.pluginManager.plugins.each{
plugin ->
println ("${plugin.getShortName()}:${plugin.getVersion()}")
}
# Remove last line of array
# Install Plugins from file
jenkins-plugin-cli --plugin-file /usr/share/jenkins/ref/plugins.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment