5bac28ae58
This commit alters the chef jobs in jenkins to run on xenial in addition to trusty. In the future the trusty jobs can be removed. Older branches will continue to use trusty. This job also renames some chef jobs to have the {node} portion at the end of the job name, which should fit the job name standard closer. Change-Id: Idfbb264f31e218d4b3c6f2351175fff5f0d52f8a
79 lines
1.9 KiB
YAML
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-xenial'
|
|
|
|
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-{name}-chef-rake-integration-{node}-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-{name}-chef-rake-integration-{node}
|
|
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-{name}-chef-rake-integration-{node}-nv:
|
|
node:
|
|
- centos-7
|
|
- ubuntu-trusty
|
|
- ubuntu-xenial
|