Installing the Jenkin plugin without rebooting

How to install my own jenkins plugin without rebooting jenkins. I saw in the update center that it installs plugins without rebooting, but I cannot install my own plugins without rebooting. Please let me know how to do this. I am using Jenkins 1.509.2

+6
source share
3 answers

During the installation of the plugin, you can select the "Install without restarting" button.

enter image description here

However, due to the architectural choices made at Jenkins, this same scheme will not allow us to update existing plugins. Jenkins added plug-in support at 1.44, because this time Jenkins demanded a reboot for the new plug-ins. This is due to the fact that we load plugins at startup, doing all kinds of calculations to create an immutable data structure around all plugins.

+4
source

Installing a custom plugin for the first time works fine without rebooting. But when I would like to perform an update for the plugin, then it indicates that I should restart the Jenkins server.

0
source

If you are asking how to install a plugin that you personally developed without restarting, and not a plugin from the plugin repository, you can do this by choosing: Jenkins> Connection Manager, go to the "Advanced" tab.

There you will see "Download Plugin." Download the hpi file for the plugin. You do not need to restart Jenkins. All work assignments will not be violated. Your plugin should appear after. This method has not been tested for all plugins, but it worked for some simple ones.

-1
source

Source: https://habr.com/ru/post/970743/


All Articles