project-config/jenkins/jobs/chef-jobs.yaml
Jan Klare 6ed1a5723e move from macro install-chefdk to chef-bootstrap
* removed macro 'install-chefdk' in favor of 'chef-bootstrap'
* macro 'chef-bootstrap' executes a cookbook specific bootstrap
  scipt which preconfigures the testnode (install packages and
  dependencies) before running the tests from the Rakefile with the job
  template 'gate-{name}-chef-rake'
* currently the bootstrap.sh does not exist in all cookbooks, since this
  is a experimental job and the final bootstrap.sh will be defined after
  this patch is merged and then cloned/added to all cookbooks using this
  job

Change-Id: I4d622b7b594aa185dd1165c913764aaeced9faae
blueprint: bootstrap-infra-test-nodes
2015-02-09 20:12:16 +01:00

98 lines
1.9 KiB
YAML

- job-template:
name: 'gate-{name}-chef-unit'
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- gerrit-git-prep
- ruby-191-prep
- chef-bundler-prep
- revoke-sudo
- chef-berkshelf-prep
- chef-cookbook-chefspec
publishers:
- console-log
# this job template requires a bootstrap.sh script (which installs chefdk and other dependencies)
# and a Rakefile with the tests that should be executed in the cookbook
- job-template:
name: 'gate-{name}-chef-rake'
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- gerrit-git-prep
- chef-bootstrap
- revoke-sudo
- chef-rake-test
publishers:
- console-log
- job-template:
name: 'gate-{name}-chef-lint'
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- gerrit-git-prep
- ruby-191-prep
- chef-bundler-prep
- revoke-sudo
- 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:
- gerrit-git-prep
- ruby-191-prep
- chef-bundler-prep
- revoke-sudo
- chef-berkshelf-prep
- chef-cookbook-rubocop
publishers:
- console-log
- job:
name: gate-openstack-chef-repo
node: 'bare-precise || bare-trusty'
builders:
- gerrit-git-prep
- ruby-191-prep
- chef-bundler-prep
- revoke-sudo
- chef-berkshelf-prep
- shell: |
#!/bin/bash -xe
# Validates roles
bundle exec spiceweasel infrastructure.yml --debug
publishers:
- console-log