You can’t reboot (in our case we revert VM’s to a clean snapshot) from a job running on the test machine itself. We use a job running on the master that issues commands to VM server that reverts it. we use the Jenkins CLI commands “wait-node-offline” and “wait-node-online” while we do this.
If you do not have some other way of talking to the slave, you might try using 3 jobs: job 1 runs on the SUT and issues the shutdown dos command. If you use “start shutdown /r” control should return to your job before the machine goes away. Job 2 runs on the master and waits for the node to come back online with the CLI command. 3rd job runs on the SUT and completes the installation or runs tests.
--
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-use...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/90965df7-4328-432f-ab82-a3b70a6aa9a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.