Sami Tikka offered the following suggestion: http://jenkins.361315.n4.nabble.com/Offline-and-revert-slave-after-build-td4631215.html
We use a slightly different approach to get roughly the same results: http://jenkins.361315.n4.nabble.com/restart-slave-after-each-job-td4538892.html Mark Waite >________________________________ > From: Andrew Melo <andrew.m...@gmail.com> >To: jenkinsci-users@googlegroups.com >Sent: Wednesday, September 5, 2012 12:11 PM >Subject: Slave graceful shutdown > > >Hello all, > > >Is there a way to configure a jenkins slave to run exactly one job then >terminate? We'd like to have a VM that starts up in a bare state, starts a >slave and reboots after each job (which will revert the VM to the previous >state), but I'm not sure how to implement it. > > >Thanks, >Andrew > > >-- >-- >Andrew Melo > > > >