Sets up a VirtualBox VM running a Jenkins slave in Ubuntu Linux that has a Chrome browser available. It is not headless, so it has to be started on a machine with a GUI.
You will need VirtualBox and Vagrant to start the VM. To start the slave, follow these steps:
- Add a new JNLP slave node to your master Jenkins. Set its home directory to
/home/jenkins - Copy
config.yml.disttoconfig.yml - Set the correct Jenkins master URL in
config.yml - Set the slave's JNLP URL in
config.yml, this should be something like<JENKINS_MASTER_URL>/computer/<SLAVE_NAME>/slave-agent.jnlp - Set the slave's secret in
config.ymlas configured in Jenkins - Run
vagrant up - The VM should fire up and show a black screen with a cursor. The slave is now waiting for instructions from the master.