From 019b881df96acd88eb661d5dfc09fb0a0f2a9da0 Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Fri, 28 Mar 2014 15:31:06 +0100 Subject: [PATCH] Add a new job for heat-templates This adds a new job that fires a devstack and then call a script validating all the templates in heat-templates. Change-Id: Ica4af76830de3370a06d3786c79af6b79d980ed6 --- .../jenkins_job_builder/config/heat.yaml | 32 +++++++++++++++++++ .../openstack_project/files/zuul/layout.yaml | 4 ++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 modules/openstack_project/files/jenkins_job_builder/config/heat.yaml diff --git a/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml b/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml new file mode 100644 index 0000000000..094034d71c --- /dev/null +++ b/modules/openstack_project/files/jenkins_job_builder/config/heat.yaml @@ -0,0 +1,32 @@ +- job: + name: gate-heat-templates-dsvm + node: devstack-precise + + wrappers: + - timeout: + timeout: 120 + fail: true + - timestamps + + builders: + - link-logs + - net-info + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TIMEOUT=120 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export PROJECTS="openstack/heat-templates $PROJECTS" + function post_test_hook {{ + source $BASE/new/devstack/openrc && \ + python $BASE/new/heat-templates/tools/validate-templates $BASE/new/heat-templates + }} + export -f post_test_hook + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + + publishers: + - devstack-logs + - console-log diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index bf05aacc00..ae23c8f460 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -556,6 +556,8 @@ jobs: voting: false - name: gate-cliff-requirements voting: false + - name: gate-heat-templates-dsvm + voting: false # The project list is grouped by type of project, and within each # group, projects are sorted (mostly) alphabetically. @@ -1627,7 +1629,7 @@ projects: - name: openstack/heat-templates check: - - noop + - gate-heat-templates-dsvm gate: - noop