diff --git a/jenkins/jobs/networking-ovs-dpdk.yaml b/jenkins/jobs/networking-ovs-dpdk.yaml new file mode 100644 index 0000000000..0291e9a09f --- /dev/null +++ b/jenkins/jobs/networking-ovs-dpdk.yaml @@ -0,0 +1,58 @@ +- job-template: + name: '{pipeline}-tempest-dsvm-networking-ovs-dpdk{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 + 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-ovs-dpdk $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-ovs-dpdk git://git.openstack.org/openstack/networking-ovs-dpdk" + + # Keep localrc to be able to set some vars in pre_test_hook + export KEEP_LOCALRC=1 + + function pre_test_hook {{ + if [ -f $BASE/new/networking-ovs-dpdk/devstack/gate/pre_test_hook.sh ] ; then + . $BASE/new/networking-ovs-dpdk/devstack/gate/pre_test_hook.sh + fi + }} + export -f pre_test_hook + + function post_test_hook {{ + if [ -f $BASE/new/networking-ovs-dpdk/devstack/gate/post_test_hook.sh ] ; then + . $BASE/new/networking-ovs-dpdk/devstack/gate/post_test_hook.sh + fi + }} + export -f post_test_hook + + export DEVSTACK_GATE_SETTINGS=/opt/stack/new/networking-ovs-dpdk/devstack/gate/devstackgaterc + + 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 9f8ec6d63f..12a2d34cc6 100644 --- a/jenkins/jobs/projects.yaml +++ b/jenkins/jobs/projects.yaml @@ -7465,6 +7465,11 @@ jobs: - python-jobs + - '{pipeline}-tempest-dsvm-networking-ovs-dpdk{suffix}': + pipeline: gate + node: ubuntu-xenial + suffix: '-nv' + branch-override: default - project: name: networking-peregrine diff --git a/zuul/layout.yaml b/zuul/layout.yaml index 8c56b01a48..a3bcc65d56 100755 --- a/zuul/layout.yaml +++ b/zuul/layout.yaml @@ -12373,6 +12373,8 @@ projects: template: - name: merge-check - name: python-jobs + experimental: + - gate-tempest-dsvm-networking-ovs-dpdk-nv - name: openstack/networking-peregrine template: