Add zuul layout validation gate job.

Non-voting for now to make sure it works.

Change-Id: Iac29eba2320c8a972a03df81d10feb0183d98fd7
Reviewed-on: https://review.openstack.org/19719
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2013-01-15 10:18:38 -08:00 committed by Jenkins
parent 43dc937fd8
commit 67aeba3668
3 changed files with 41 additions and 0 deletions

View File

@ -44,6 +44,21 @@
- console-log - console-log
- job:
name: gate-config-layout
node: precise
triggers:
- zuul
builders:
- gerrit-git-prep
- shell: "./tools/run-layout.sh"
publishers:
- console-log
# This is a non-standard docs job because it uses SCP instead of FTP # This is a non-standard docs job because it uses SCP instead of FTP
- job: - job:
name: ci-docs name: ci-docs

View File

@ -100,6 +100,8 @@ jobs:
- name: gate-tempest-devstack-vm-postgres - name: gate-tempest-devstack-vm-postgres
branch: ^(?!stable/(diablo|essex|folsom)).*$ branch: ^(?!stable/(diablo|essex|folsom)).*$
voting: false voting: false
- name: gate-config-layout
voting: false
projects: projects:
@ -227,10 +229,12 @@ projects:
check: check:
- gate-config-syntax - gate-config-syntax
- gate-config-lint - gate-config-lint
- gate-config-layout
- config-compare-xml - config-compare-xml
gate: gate:
- gate-config-syntax - gate-config-syntax
- gate-config-lint - gate-config-lint
- gate-config-layout
post: post:
- ci-docs - ci-docs

22
tools/run-layout.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/bash -e
# Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
rm -fr .test
mkdir .test
cd .test
git clone https://review.openstack.org/p/openstack-infra/zuul --depth 1
cd zuul
tox -e validate-layout ../../modules/openstack_project/files/zuul/layout.yaml