From 4d836c573137ed7e3975556bc07939ddbecf3c73 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Mon, 3 Mar 2014 11:34:36 -0800 Subject: [PATCH] Add tempest full job to sqlalchemy-migrate Based on the layout for other stackforge projects, i.e. Barbican, but using the environment for tempest-dvsm-full. Related-Bug: #1287229 Change-Id: If7c8ab4e6be116d9fc10fc73fb28e86cec852963 --- .../jenkins_job_builder/config/projects.yaml | 10 +++++ .../config/sqlalchemy-migrate.yaml | 37 +++++++++++++++++++ .../openstack_project/files/zuul/layout.yaml | 3 ++ 3 files changed, 50 insertions(+) create mode 100644 modules/openstack_project/files/jenkins_job_builder/config/sqlalchemy-migrate.yaml diff --git a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml index 775c8902b1..0425bee2e8 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml @@ -285,6 +285,16 @@ node: bare-centos6 - gate-{name}-unittests-{env}: env: 27sa07 + - '{pipeline}-sqlalchemy-migrate-devstack-dsvm{branch-designator}': + pipeline: check + node: 'devstack-precise || devstack-precise-check' + branch-designator: '' + branch-override: default + - '{pipeline}-sqlalchemy-migrate-devstack-dsvm{branch-designator}': + pipeline: gate + node: 'devstack-precise' + branch-designator: '' + branch-override: default - hook-{name}-rtfd - pypi-jobs diff --git a/modules/openstack_project/files/jenkins_job_builder/config/sqlalchemy-migrate.yaml b/modules/openstack_project/files/jenkins_job_builder/config/sqlalchemy-migrate.yaml new file mode 100644 index 0000000000..fb95034a6f --- /dev/null +++ b/modules/openstack_project/files/jenkins_job_builder/config/sqlalchemy-migrate.yaml @@ -0,0 +1,37 @@ +- job-template: + name: '{pipeline}-sqlalchemy-migrate-devstack-dsvm{branch-designator}' + node: '{node}' + + wrappers: + - timeout: + timeout: 185 + fail: true + - timestamps + + builders: + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TIMEOUT=180 + export PROJECTS="stackforge/sqlalchemy-migrate $PROJECTS" + export DEVSTACK_GATE_TEMPEST=1 + export DEVSTACK_GATE_TEMPEST_FULL=1 + export BRANCH_OVERRIDE={branch-override} + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function pre_test_hook {{ + cd /opt/stack/new/sqlalchemy-migrate + sudo pip install . + }} + export -f pre_test_hook + + cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh + ./safe-devstack-vm-gate-wrap.sh + - link-logs + + publishers: + - devstack-logs + - console-log diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 4e5d2b9d2f..0940553012 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -575,6 +575,8 @@ jobs: voting: false - name: gate-barbican-devstack-dsvm voting: false + - name: ^(gate|check)-sqlalchemy-migrate-devstack-dsvm$ + voting: false - name: gate-manila-tempest-dsvm-neutron voting: false - name: gate-climate-devstack-dsvm @@ -4532,6 +4534,7 @@ projects: - gate-sqlalchemy-migrate-python27 - gate-sqlalchemy-migrate-unittests-26sa07 - gate-sqlalchemy-migrate-unittests-27sa07 + - check-sqlalchemy-migrate-devstack-dsvm gate: - gate-sqlalchemy-migrate-python26 - gate-sqlalchemy-migrate-python27