From 018578660d720426a43943ddad2b389dd6c744ae Mon Sep 17 00:00:00 2001 From: Sergey Skripnick Date: Wed, 2 Apr 2014 16:01:03 +0300 Subject: [PATCH] Add rally-scenarios job This job installs rally devstack integration and runs rally exercises. Change-Id: I6b145444fe5dad06ef039d7ef0b74df8e49fe104 --- .../jenkins_job_builder/config/projects.yaml | 3 +++ .../jenkins_job_builder/config/rally.yaml | 23 +++++++++++++++++++ .../openstack_project/files/zuul/layout.yaml | 3 +++ 3 files changed, 29 insertions(+) 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 0d76c7cde2..cb64894c86 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml @@ -2023,6 +2023,9 @@ node: bare-precise - check-rally-install-{node}: node: bare-centos6 + - '{pipeline}-rally-scenarios': + pipeline: check + node: 'devstack-precise || devstack-precise-check' - project: name: python-rallyclient diff --git a/modules/openstack_project/files/jenkins_job_builder/config/rally.yaml b/modules/openstack_project/files/jenkins_job_builder/config/rally.yaml index 971a63c282..e1b0212aca 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/rally.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/rally.yaml @@ -9,3 +9,26 @@ publishers: - console-log + +- job-template: + name: '{pipeline}-rally-scenarios' + node: '{node}' + + builders: + - link-logs + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PROJECTS="stackforge/rally $PROJECTS" + + function pre_test_hook {{ + /opt/stack/new/rally/tests_ci/pre_test_hook.sh + }} + 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 + + publishers: + - devstack-logs + - console-log diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 9906f6e263..250510f4fa 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -550,6 +550,8 @@ jobs: voting: false - name: ^check-rally-install-.*$ voting: false + - name: ^check-rally-scenarios-.*$ + voting: false - name: gate-rally-python33 voting: false - name: gate-stevedore-docs @@ -4373,6 +4375,7 @@ projects: - gate-rally-python33 - check-rally-install-bare-centos6 - check-rally-install-bare-precise + - check-rally-scenarios gate: - gate-rally-pep8 - gate-rally-python26