简体   繁体   中英

Install Jenkins plugins Offline

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?

Yes, that will work. Copy the content in your $JENKINS_HOME directory to the other Jenkins server. Plugins are stored in $JENKINS_HOME/plugins.

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.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM