diff --git a/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml b/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml new file mode 100644 index 0000000000..cd9fc0dcf5 --- /dev/null +++ b/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml @@ -0,0 +1,37 @@ +- job-template: + name: '{pipeline}-neutron-dsvm-functional{branch-designator}' + node: '{node}' + + wrappers: + - timeout: + timeout: 125 + fail: true + - timestamps + + builders: + - devstack-checkout + - shell: | + #!/bin/bash -xe + export PYTHONUNBUFFERED=true + export DEVSTACK_GATE_TIMEOUT=120 + export DEVSTACK_GATE_TEMPEST=0 + export DEVSTACK_GATE_EXERCISES=0 + export BRANCH_OVERRIDE={branch-override} + if [ "$BRANCH_OVERRIDE" != "default" ] ; then + export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE + fi + + function post_test_hook {{ + /opt/stack/new/devstack/unstack.sh + export OS_SUDO_TESTING=1 + cd /opt/stack/new/neutron + tox -e functional + }} + 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 + - link-logs + + publishers: + - devstack-logs + - console-log 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 18eceb5c54..cd017163a3 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/projects.yaml @@ -858,6 +858,11 @@ - python-havana-bitrot-jobs - openstack-publish-jobs - translation-jobs + - '{pipeline}-neutron-dsvm-functional{branch-designator}': + pipeline: check + node: 'devstack-precise || devstack-precise-check' + branch-designator: '' + branch-override: default - project: diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index 5818201629..537136f4db 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -782,6 +782,7 @@ projects: - check-tempest-dsvm-neutron-isolated-parallel - gate-grenade-dsvm-neutron-forward - neutron-upstream-translation-update + - check-neutron-dsvm-functional pre-release: - neutron-tarball release: