Khai Do fd4d79542e Switch jobs to use the build-timeout macro
This change configures all jobs to use the new build-timeout macro.
This macro enables the following:
1. exports a 'BUILD_TIMEOUT' environment variable which is set to the
   timeout value.
2. sets the build to a failed state when a timeout occurs.

Change-Id: Iebda7cccc2f808805a9b2d744c11892d1bf3bdef
2014-06-29 08:26:47 -07:00

77 lines
1.6 KiB
YAML

- job-template:
name: 'gate-{name}-chef-unit'
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- revoke-sudo
- gerrit-git-prep
- chef-bundler-prep
- chef-berkshelf-prep
- chef-cookbook-chefspec
publishers:
- console-log
- job-template:
name: 'gate-{name}-chef-lint'
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- revoke-sudo
- gerrit-git-prep
- chef-bundler-prep
- chef-berkshelf-prep
- chef-cookbook-foodcritic
publishers:
- console-log
- job-template:
name: 'gate-{name}-chef-style'
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- revoke-sudo
- gerrit-git-prep
- chef-bundler-prep
- chef-berkshelf-prep
- chef-cookbook-rubocop
publishers:
- console-log
- job:
name: gate-openstack-chef-repo
node: 'bare-precise || bare-trusty'
builders:
- revoke-sudo
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
mkdir -p .cookbooks .bundle
ruby1.9.1 /usr/bin/bundle config --global jobs $(nproc)
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