*The Original Issue* I have a couple of heavily used Windows 7 slaves that I prefer to see rebooted daily, the reboot job will not start while any other job running so it can sometimes take many hours before it finds a free moment where it can kick off a reboot.
*My Solution* Was to write a script (vbscript running on the slave) to take the node offline, wait till node idle, reboot, on restart put the node back online. From my research this seems to be a common approach, although I'm not sure anyone has tried using vbscript... *Assistance Required* I'm getting extremely frustrated with the API and CLI, the api has the functionality I require but does not support authentication (at least I cannot get authentication working with vbscript), while the cli has the authentication but not the functionality. I figure that groovy script run by the CLI utility would probably be the best solution, however I am at a loss as to where to start. Can anyone point me at an example which ideally explains how to run groovy via CLI? Preferably it would demonstrate checking if node idle and taking node offline. Restarting slaves seems to be a fairly standard requirement so I'm surprised that there's not better support out of the box. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.