Reverting vmware vm from jenkins

BBA

Supreme [H]ardness
Joined
Apr 25, 2003
Messages
5,382
Jenkins newb here....

Does anyone have a simple method to add a revert command for vmware workstation virtual machines that will occur as a new job starts?

Of course I can set Jenkins to power down a vm after a job and then I can set vmware workstation to revert on power off but that does not guarantee your jobs will build on a clean vm. (Say a job fails and the shutdown never occurs...now you have junk artifacts the next job can be compromised by because the shutdown never happened, etc...)

This is not an issue with vsphere/vCloud machines, because there are plugins for that...but I cant for the life of me find a way to do it with workstation other than a suggestion for using vmware vix or a bunch of code I can't quite figure out https://issues.jenkins-ci.org/browse/JENKINS-12163
 
Back
Top