From 9128f6498305de279dafc43c99844a514d5b9a4e Mon Sep 17 00:00:00 2001 From: Sergey Kolekonov Date: Wed, 30 Apr 2014 15:35:41 +0400 Subject: [PATCH] Add devstack job for Mistral project This job will run simple Mistral API test on devstack environment Change-Id: I8b1083be25f282b3f814f104c7e28b0d281d3764 --- .../jenkins_job_builder/config/mistral.yaml | 42 +++++++++++++++++++ .../openstack_project/files/zuul/layout.yaml | 3 ++ 2 files changed, 45 insertions(+) create mode 100644 modules/openstack_project/files/jenkins_job_builder/config/mistral.yaml diff --git a/modules/openstack_project/files/jenkins_job_builder/config/mistral.yaml b/modules/openstack_project/files/jenkins_job_builder/config/mistral.yaml new file mode 100644 index 0000000000..659281947f --- /dev/null +++ b/modules/openstack_project/files/jenkins_job_builder/config/mistral.yaml @@ -0,0 +1,42 @@ +- job: + name: gate-mistral-devstack-dsvm + node: devstack-precise + + wrappers: + - timeout: + timeout: 65 + fail: true + - timestamps + + builders: + - link-logs + - net-info + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TIMEOUT=60 + export ENABLED_SERVICES=mistral + export PROJECTS="stackforge/mistral $PROJECTS" + + function pre_test_hook { + # Install mistral devstack integration + MISTRAL_BASE=/opt/stack/new/mistral/contrib/devstack + DEVSTACK_BASE=/opt/stack/new/devstack + cp $MISTRAL_BASE/lib/* $DEVSTACK_BASE/lib + cp $MISTRAL_BASE/extras.d/* $DEVSTACK_BASE/extras.d + } + export -f pre_test_hook + + function post_test_hook { + cd /opt/stack/new/mistral/tools + bash check_api.sh + } + 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 c6666d3421..1686798c61 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -497,6 +497,8 @@ jobs: voting: false - name: gate-mistral-python33 voting: false + - name: gate-mistral-devstack-dsvm + voting: false - name: gate-mistral-extra-python33 voting: false - name: gate-python-mistralclient-python33 @@ -3560,6 +3562,7 @@ projects: - gate-mistral-python27 - gate-mistral-python33 - gate-mistral-docs + - gate-mistral-devstack-dsvm gate: - gate-mistral-pep8 - gate-mistral-python26