From eed416b490dc3621d44690595ac48b0c72d94696 Mon Sep 17 00:00:00 2001 From: Nikolas Hermanns Date: Wed, 16 Dec 2015 12:38:13 +0100 Subject: [PATCH] Add tempest-dsvm-networking-bgpvpn-bagpipe jobs This commit defines job template to run tempest against networking-bgpvpn with the bagpipe reference implementation. Change-Id: Ibdc3e6163c265f70b5befb1dbfea1f1d69e3395a --- jenkins/jobs/networking-bgpvpn.yaml | 61 +++++++++++++++++++++++++++++ jenkins/jobs/projects.yaml | 5 +++ zuul/layout.yaml | 1 + 3 files changed, 67 insertions(+) diff --git a/jenkins/jobs/networking-bgpvpn.yaml b/jenkins/jobs/networking-bgpvpn.yaml index e293385020..7930b94bb8 100644 --- a/jenkins/jobs/networking-bgpvpn.yaml +++ b/jenkins/jobs/networking-bgpvpn.yaml @@ -116,3 +116,64 @@ publishers: - devstack-logs - console-log + +- job-template: + name: '{pipeline}-tempest-dsvm-networking-bgpvpn-bagpipe{job-suffix}' + node: '{node}' + + wrappers: + - build-timeout: + timeout: 130 + - timestamps + + builders: + - print-template-name: + template-name: "{template-name}" + - link-logs + - net-info + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_NEUTRON=1 + # Make sure tempest is installed and performed + export DEVSTACK_GATE_TEMPEST=1 + export BRANCH_OVERRIDE={branch-override} + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + # Because we are testing a non standard project, add + # our project repository. This makes zuul do the right + # reference magic for testing changes. + export PROJECTS="openstack/networking-bgpvpn $PROJECTS" + export PROJECTS="openstack/networking-bagpipe $PROJECTS" + # Note the actual url here is somewhat irrelevant because it + # caches in nodepool, however make it a valid url for + # documentation purposes. + export DEVSTACK_LOCAL_CONFIG="enable_plugin networking-bgpvpn git://git.openstack.org/openstack/networking-bgpvpn" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook {{ + . $BASE/new/networking-bgpvpn/devstack/pre_test_hook.sh + }} + export -f pre_test_hook + + function gate_hook {{ + . $BASE/new/networking-bgpvpn/devstack/gate_hook.sh + }} + export -f gate_hook + + function post_test_hook {{ + . $BASE/new/networking-bgpvpn/devstack/post_test_hook.sh + }} + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-bgpvpn/devstack/devstack-gate-bagpipe-rc + 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/jenkins/jobs/projects.yaml b/jenkins/jobs/projects.yaml index 2bd4bf5c50..fbb4103ed7 100644 --- a/jenkins/jobs/projects.yaml +++ b/jenkins/jobs/projects.yaml @@ -3314,6 +3314,11 @@ node: ubuntu-trusty job-suffix: '' branch-override: default + - '{pipeline}-tempest-dsvm-networking-bgpvpn-bagpipe{job-suffix}': + pipeline: gate + node: ubuntu-trusty + job-suffix: '' + branch-override: default - project: name: networking-bigswitch diff --git a/zuul/layout.yaml b/zuul/layout.yaml index 641c457495..fe6f95b9c6 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -7256,6 +7256,7 @@ projects: experimental: - gate-install-dsvm-networking-bgpvpn - gate-install-dsvm-networking-bgpvpn-bagpipe + - gate-tempest-dsvm-networking-bgpvpn-bagpipe - name: openstack/networking-bigswitch template: