project-config/jenkins/jobs/chef-jobs.yaml
Jan Klare d4c7da2f5b run integration testing for chef-cookbooks on centos7 and trusty
* added {node} variable to gate-*-chef-rake-integration-nv job template to allow
  converge of ubuntu and centos7 nodes for integration testing of all
  chef-cookbooks (same goes for the periodic integration test in the chef-repo)
* removed quoting for job template names in chef-jobs

Change-Id: Ia4ea9866057b12d7aa0176284ea88a50ab9fbee8
2016-03-01 11:56:53 +01:00

77 lines
1.9 KiB
YAML

# 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:
- print-template-name:
template-name: '{template-name}'
- gerrit-git-prep
- chef-bootstrap
- revoke-sudo
- chef-rake-test
publishers:
- console-log
# this job template requires a bootstrap.sh script (which installs chefdk and other dependencies)
# and a Rakefile with the integration tests that should be executed
# sudo privileges for jenkins are not revoked, since they are needed during the chef run executed for integration testing
- job-template:
name: gate-{node}-{name}-chef-rake-integration-nv
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- print-template-name:
template-name: '{template-name}'
- gerrit-git-prep
- chef-bootstrap
- chef-rake-integration
publishers:
- console-log
- job-template:
name: periodic-{node}-{name}-chef-rake-integration
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- print-template-name:
template-name: '{template-name}'
- branch-git-prep:
branch: master
- chef-bootstrap
- chef-rake-integration
publishers:
- console-log
- job-group:
name: chef-test-jobs
jobs:
- gate-{name}-chef-rake
- gate-{node}-{name}-chef-rake-integration-nv:
node:
- devstack-centos7
- ubuntu-trusty
- periodic-{node}-{name}-chef-rake-integration:
node:
- devstack-centos7
- ubuntu-trusty