A spike to explore use of Jenkins for Chef cookbook testing
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
definitions
files/default
recipes
templates/default
test/integration/default/serverspec
.gitignore
.kitchen.yml
Berksfile
Gemfile
LICENSE
README.md
Thorfile
Vagrantfile
chefignore
metadata.rb

README.md

cooking-with-jenkins cookbook

This cookbook exists to show how Jenkins can be configured to build a CI pipeline for Chef cookbook development. See the accompanying blog post for details and commentary.

Requirements

Ubuntu 13.04 is the only supported system.

To use the included Vagrantfile, you'll need Vagrant with the vagrant-berkshelf and vagrant-omnibus plugins installed. It should work fine under Virtualbox, but I've been using VMware as it seems to cope better under load.

Usage

Checkout this repository and run vagrant up. When Vagrant finishes provisioning the machine, Jenkins will be available on http://localhost:8080/.

Known Issue: The machine creates test jobs for three cookbooks, and the first test run for each (during provisioning) fails. I suspect this would be fixed by restarting Jenkins after adding plugins (the "configure-jenkins" recipe) and before defining the jobs, but it didn't bother me enough to add the necessary hackery.

Click "Build Now" on each job and you'll see them work correctly.

Attributes

Recipes

Author

Author:: Zachary Stevens (zts@cryptocracy.com)