In python world there is useful tool like pip freeze
which dumps all currently installed python packages into a core-support plugin format. This dump can then be used to configure a new virtual environment for a new python installation.
Is there anything similar for Jenkins docker images?
I understand from the official jenkins docker image docs that it can accept a core-support plugin format file to pre-install plugins. How can i generate that file myself from an existing jenkins installation that i already have?
The following Groovy code can be entered into the Script Console available under Manage Jenkins and will output said list:
Jenkins.instance.pluginManager.plugins.sort().each{ plugin ->
println "${plugin.getShortName()}:${plugin.getVersion()}"
}
ace-editor:1.1
analysis-collector:1.49
analysis-core:1.81
ansicolor:0.4.3
...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.