So here is a simple example that will help provision a VM with Jenkins, jenkins-job-builder and Docker all in one with Vagrant.
Gone are those embarrassing git commits with those peskey jenkins-job-builder yaml files! Throwing in Docker install in Vagrant for Mac users who shuns boot2docker.
Some bonus stuff like examples of provisioning Jenkins plugin via the cli interface, creating first time Jenkins user are chucked in too.
Check it out! https://github.com/yveshwang/jenkins-docker-2step
2-steps are as below
- point your browser to http://localhost:38080 and enjoy
and then ..
jenkins-jobs --conf jenkins-job-builder-localhost.ini test your-jobs.yaml -o output/