09d120485a
Revoke sudo from all jobs that do or could run on bare-precise nodes. Do not revoke it from devstack-precise or special nodes. Change-Id: Icaf0bb5d15b76f985d0d8c0ec4afa6a34568570a
59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
- job-template:
|
|
name: 'gate-{name}-chef-unit'
|
|
node: '{node}'
|
|
|
|
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}'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- chef-bundler-prep
|
|
- chef-cookbook-foodcritic
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-chef-style'
|
|
node: '{node}'
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- gerrit-git-prep
|
|
- chef-bundler-prep
|
|
- chef-cookbook-rubocop
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
- job:
|
|
name: gate-openstack-chef-repo
|
|
node: bare-precise
|
|
|
|
builders:
|
|
- revoke-sudo
|
|
- 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
|