system-config/modules/openstack_project/files/jenkins_job_builder/config/chef-jobs.yaml
Jay Pipes 1f26c6c8df Enable gate on OpenStack Chef Repository
Enables gating on berkshelf install and spiceweasel
running successfully. It's a small but important gate that
will catch glaring cookbook dependency and role definition
errors.

fixes lp 1229296

Change-Id: I86f2cd22decd4318fd4cf5fef278a2ba103797e0
2013-09-23 20:09:43 -04:00

54 lines
1.1 KiB
YAML

- job-template:
name: 'gate-{name}-chef-unit'
node: '{node}'
builders:
- gerrit-git-prep
- chef-cookbook-prep
- chef-cookbook-rspec
publishers:
- console-log
- job-template:
name: 'gate-{name}-chef-lint'
node: '{node}'
builders:
- gerrit-git-prep
- chef-cookbook-prep
- chef-cookbook-lint
publishers:
- console-log
- job-template:
name: 'gate-{name}-chef-style'
node: '{node}'
builders:
- gerrit-git-prep
- chef-cookbook-prep
- chef-cookbook-style
publishers:
- console-log
- job:
name: gate-openstack-chef-repo
node: precise
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
mkdir -p .cookbooks .bundle
ruby1.9.1 /usr/bin/bundle install --path=.bundle
# Validates cookbooks
ruby1.9.1 /usr/bin/bundle exec berks install --path=.cookbooks
# Validates roles
ruby1.9.1 /usr/bin/bundle exec spiceweasel infrastructure.yml --debug
publishers:
- console-log