Last active
August 31, 2022 15:38
-
-
Save tankhuu/8e5c848c68b3ea0f08058979af677261 to your computer and use it in GitHub Desktop.
Jenkins Utilities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Go to https://our-jenkins-url/script | |
Jenkins.instance.pluginManager.plugins.each{ | |
plugin -> | |
println ("${plugin.getShortName()}:${plugin.getVersion()}") | |
} | |
# Remove last line of array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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