Adds Chef style checking job
Adds a macro that fires off tailor to check cookbooks Chef and Ruby style. See https://review.openstack.org/#/c/30827 for some more information about the use of tailor against the Chef cookbook repositories. Marks the OpenStack Compute cookbook for gating with this new job. Change-Id: Ib5b3d6548749ddc1107a70b462f7432dde672410 Reviewed-on: https://review.openstack.org/30921 Reviewed-by: John Dewey <john@dewey.ws> Reviewed-by: craigtracey <craigtracey@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
This commit is contained in:
parent
12106d198e
commit
ba307ea0f5
@ -27,3 +27,18 @@
|
|||||||
|
|
||||||
publishers:
|
publishers:
|
||||||
- console-log
|
- console-log
|
||||||
|
|
||||||
|
- job-template:
|
||||||
|
name: 'gate-{name}-chef-style'
|
||||||
|
node: '{node}'
|
||||||
|
|
||||||
|
triggers:
|
||||||
|
- zuul
|
||||||
|
|
||||||
|
builders:
|
||||||
|
- gerrit-git-prep
|
||||||
|
- chef-cookbook-prep
|
||||||
|
- chef-cookbook-style
|
||||||
|
|
||||||
|
publishers:
|
||||||
|
- console-log
|
||||||
|
@ -89,6 +89,13 @@
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- builder:
|
||||||
|
name: chef-cookbook-style
|
||||||
|
builders:
|
||||||
|
- shell: |
|
||||||
|
COOKBOOK=$(awk '/^name/ {print $NF}' metadata.rb |tr -d \"\')
|
||||||
|
ruby1.9.1 /usr/bin/bundle exec tailor
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: chef-cookbook-lint
|
name: chef-cookbook-lint
|
||||||
builders:
|
builders:
|
||||||
|
@ -964,6 +964,7 @@
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- gate-{name}-chef-lint
|
- gate-{name}-chef-lint
|
||||||
|
- gate-{name}-chef-style
|
||||||
- gate-{name}-chef-unit
|
- gate-{name}-chef-unit
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
|
@ -1852,9 +1852,11 @@ projects:
|
|||||||
- name: stackforge/cookbook-openstack-compute
|
- name: stackforge/cookbook-openstack-compute
|
||||||
check:
|
check:
|
||||||
- gate-cookbook-openstack-compute-chef-lint
|
- gate-cookbook-openstack-compute-chef-lint
|
||||||
|
- gate-cookbook-openstack-compute-chef-style
|
||||||
- gate-cookbook-openstack-compute-chef-unit
|
- gate-cookbook-openstack-compute-chef-unit
|
||||||
gate:
|
gate:
|
||||||
- gate-cookbook-openstack-compute-chef-lint
|
- gate-cookbook-openstack-compute-chef-lint
|
||||||
|
- gate-cookbook-openstack-compute-chef-style
|
||||||
- gate-cookbook-openstack-compute-chef-unit
|
- gate-cookbook-openstack-compute-chef-unit
|
||||||
|
|
||||||
- name: stackforge/cookbook-openstack-dashboard
|
- name: stackforge/cookbook-openstack-dashboard
|
||||||
|
Loading…
Reference in New Issue
Block a user