title: How reboot Jenkins with running build queue?
body: <p>Our Jenkins performs massive integration tests. The longer the jenkins is running, the longer the tests need. Thus we restart the Jenkins server every night via cronjob. Meanwhile the build queue is too long to be finished and the currently running job is canceled and a fail. That's ugly. I found the <a href="https://wiki.jenkins-ci.org/display/JENKINS/SafeRestart+Plugin" rel="noreferrer">Safe Restart Plugin</a>, but that waits for empty build queues. Ideally I would have a job which could be priorized to also reboot at every wanted time during the day. This job needs to perform the reboot as the safe restart plugin would do if no jobs where left.</p>