Is there a stable plugin for Jenkins for running builds on VMs?

jenkins, travis-ci, virtualbox

Solution

Check out the Vagrant Plugin https://wiki.jenkins-ci.org/display/JENKINS/Vagrant-plugin

This plugin allows booting of Vagrant virtual machines, provisioning them and also executing scripts inside of them

Problem

Travis CI has a really nice feature, builds are run within VirtualBox VMs. Each time a build is started, the box is refreshed from a snapshot and the code copied on to it. Any problems with the build cannot affect the host, and you can use any OS to run your builds on. This would be really good, for example, compiling and testing code on a guest OS that matches your production env. Also, you can keep your host free of any installation dependencies you might need (e.g. a database server) and run ITs without worrying about things like port conflicts. Does such a thing exist for Jenkins?

Original source