Plugin

25 views
Skip to first unread message

Marcus Jacobsson

unread,
Nov 5, 2015, 7:25:04 AM11/5/15
to jenkin...@googlegroups.com
Hi

Try to take things in the right order this time :). Today we use a plugin to monitor our Windows nodes to see if they need to restart. If they need to restart then all the nodes are reserved and once the nodes are reserved the node restarts.

Is this anything that you want me to publish as a plugin or is there perhaps already something that does something similar (was a few years since I developed this plugin). If there is nothing that does something similar then I can publish this plugin, may need to clean it up as it's been a while since I worked on it. 

For now I've uploaded the source for 1.7 to GitHub https://github.com/hanabishi/SlaveRestartPlugin

Regards
Marcus

Oleg Nenashev

unread,
Nov 5, 2015, 10:25:17 AM11/5/15
to Jenkins Developers
If the functionality is generic enough (seems so), maybe makes sense to add it to https://wiki.jenkins-ci.org/display/JENKINS/Windows+Slaves+Plugin

четверг, 5 ноября 2015 г., 13:25:04 UTC+1 пользователь Marcus Jacobsson написал:

R. Tyler Croy

unread,
Nov 5, 2015, 10:36:45 AM11/5/15
to jenkin...@googlegroups.com
(replies inline)
I'm not sure there's another plugin similar to this, although I don't really
know enough about running Windows slaves to understand the need to restart them :P


If you're using this in conjunction with the Windows Slaves plugin
(https://wiki.jenkins-ci.org/display/JENKINS/Windows+Slaves+Plugin) then
perhaps it makes sense to merge that functionality into that plugin?


Just throwin' out ideas here

- R. Tyler Croy

------------------------------------------------------
Code: <https://github.com/rtyler>
Chatter: <https://twitter.com/agentdero>

% gpg --keyserver keys.gnupg.net --recv-key 3F51E16F
------------------------------------------------------
signature.asc

Marcus Jacobsson

unread,
Nov 5, 2015, 10:50:58 AM11/5/15
to Jenkins Developers
The reason for needing to restart them is that Microsoft pushes out patches, and in some organisations you can't control when they get pushed out. If windows is in a state where it needs to restart after getting patched it's no longer safe to continue to run different operations as operations may fail intermittent. Also if you don't do anything about it sooner or alter windows will restart and you have a bunch of red builds without logs.

I can take a look and see if it can be added to the build slave plugin.

Marcus Jacobsson

unread,
Nov 5, 2015, 10:53:17 AM11/5/15
to Jenkins Developers
Also it's good to have the restart plugin as we (for some reason) have a bug that if we restart Jenkins and does not restart the slave.jar file then it will crash intermittently. The easiest way for us to get around this issue was to just restart the slaves after restarting the Jenkins service.
Reply all
Reply to author
Forward
0 new messages