We use a pair of jobs, the first reverts the snapshot on the virtual machine. The snapshot is a Windows machine configured to restart the slave agent on reboot. The second job is tied to the specific machine and will block waiting for the slave agent to become available on the machine after it has reverted.
Mark Waite >________________________________ > From: roger <[email protected]> >To: Jenkins Developers <[email protected]> >Sent: Friday, April 6, 2012 11:02 PM >Subject: restart slave after each job > >Hi, > >I wonder if there is any way to restart a slave after each job? > >I tried to use lab manager plugin to shutdown the virtual machines, >but the problem is that if there are jobs in the queue, then the next >job would run on the same slave before it shutdown. > >Thanks. > > >
