-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins ver. 1.625.1 and Jenkins ver. 1.634
Setting a node temporarily to offline or online is not persisted to disk. Normally this is not an issue but each time I have to restart Jenkins this a big issue. Nodes that should be offiline after a restart is not and nodes that should be online is offiline. The only way to update the temporarily offline status is to change something in the node configuration and save.
I believed this worked in the past I do not know the version. I do not restart often and it took me some time to notice this.
I have found a solution that works for jenkins-1.635.
Probably not the correct fix but it works for me. Please feel free to derive work from my diff. I am a long time user of Jenkins but NO Java programmer. Hope this helps.
I have not had the opportunity to test this in the production environment yet. So I do not know if this works for 1.625.1.