project-config/jenkins/jobs/chef-jobs.yaml
Andreas Jaeger cb5c7010f0 Do not define unused periodic chef jobs
The chef-jobs group defines a periodic job for each chef repo but only a
single one uses it. Define the job only for that single repo.

Change-Id: Id4f2fff0f28d127b31c1b5dce6f2782eae2151fa
2016-06-30 21:28:40 +02:00

79 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: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- print-template-name:
template-name: '{template-name}'
- gerrit-git-prep
- install-distro-packages
- 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
- install-distro-packages
- chef-bootstrap
- chef-rake-integration
publishers:
- devstack-logs
- 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
- install-distro-packages
- chef-bootstrap
- chef-rake-integration
publishers:
- devstack-logs
- console-log
- job-group:
name: chef-test-jobs
jobs:
- gate-{name}-chef-rake
- gate-{node}-{name}-chef-rake-integration-nv:
node:
- centos-7
- ubuntu-trusty
- ubuntu-xenial