I have a server running Jenkins which has not connectivity to the internet what so ever. Not through a proxy, nothing.
I have to install a bunch of plugins with all of their dependencies. What would be the simplest way of doing this? It would take forever to manually download the .hpi files and install them...
Could I get creative and run Jenkins on my PC, install all the needed plugins and then copy that plugin folder to my server or something similar?
CodePudding user response:
Yes, that will work. Copy the content in your $JENKINS_HOME directory to the other Jenkins server. Plugins are stored in $JENKINS_HOME/plugins.
CodePudding user response:
It will work.
The only thing that needs to be copied is the jpi/hpi files in the /plugins
directory.
Jenkins expands the plugins into same named directories within. Up restart, initial configuration files are created in the ${JENKINS_HOME}
directory or added to config.xml
.
If you don't perform any configuration locally you need not copy the configs.
Note, once installed locally (and restarted so operational), you can get a full list of plugins installed from the /systemInfo
. When installing a plugin it will download the latest listed but also the latest compatible dependencies, which may change at any time, so you may not get the same set 2nd time.
You can use the list to know what's been updated from time to time, or just click Update All and then can find plugins (jpi/hpi) w/newer time stamps and copy those over later.