2015-03-04 20:55:11 +00:00
|
|
|
- job-template:
|
|
|
|
name: '{pipeline}-neutron-dsvm-api{branch-designator}'
|
|
|
|
node: '{node}'
|
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
|
|
|
timeout: 125
|
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_TIMEOUT=120
|
|
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
|
|
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
|
|
|
|
export DEVSTACK_GATE_EXERCISES=0
|
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
|
|
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
|
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
|
|
fi
|
|
|
|
|
|
|
|
function gate_hook {{
|
|
|
|
bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh api
|
|
|
|
}}
|
|
|
|
export -f gate_hook
|
|
|
|
|
|
|
|
function post_test_hook {{
|
|
|
|
bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh api
|
|
|
|
}}
|
|
|
|
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:
|
2015-04-08 13:53:57 +02:00
|
|
|
- test-results
|
2015-03-04 20:55:11 +00:00
|
|
|
- devstack-logs
|
|
|
|
- console-log
|
|
|
|
|
2014-01-15 22:16:47 +00:00
|
|
|
- job-template:
|
|
|
|
name: '{pipeline}-neutron-dsvm-functional{branch-designator}'
|
|
|
|
node: '{node}'
|
|
|
|
|
|
|
|
wrappers:
|
2014-05-27 14:51:16 -07:00
|
|
|
- build-timeout:
|
2014-01-15 22:16:47 +00:00
|
|
|
timeout: 125
|
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
2014-03-11 15:46:51 -07:00
|
|
|
- link-logs
|
2014-03-19 00:06:03 +00:00
|
|
|
- net-info
|
2014-01-15 22:16:47 +00:00
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
2014-08-23 05:42:21 +00:00
|
|
|
export DEVSTACK_GATE_UNSTACK=1
|
2014-01-15 22:16:47 +00:00
|
|
|
export DEVSTACK_GATE_TIMEOUT=120
|
|
|
|
export DEVSTACK_GATE_TEMPEST=0
|
|
|
|
export DEVSTACK_GATE_EXERCISES=0
|
2014-07-28 22:11:45 +00:00
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
|
|
export DEVSTACK_GATE_INSTALL_TESTONLY=1
|
2014-01-15 22:16:47 +00:00
|
|
|
export BRANCH_OVERRIDE={branch-override}
|
2015-02-14 05:32:25 +00:00
|
|
|
# Gate hooks previous to kilo will break if PROJECTS is overridden
|
2015-03-06 07:33:28 -08:00
|
|
|
if [[ ! "$BRANCH_OVERRIDE" =~ ^stable/(icehouse|juno)$ ]] && [[ ! "$ZUUL_BRANCH" =~ ^stable/(icehouse|juno)$ ]] ; then
|
2015-02-14 05:32:25 +00:00
|
|
|
export DEVSTACK_GATE_PROJECTS_OVERRIDE="openstack-dev/devstack openstack/neutron"
|
|
|
|
fi
|
2014-01-15 22:16:47 +00:00
|
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
|
|
fi
|
|
|
|
|
2014-08-22 23:48:44 -07:00
|
|
|
function gate_hook {{
|
2015-01-07 10:12:25 +01:00
|
|
|
if [[ -e $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh ]]; then
|
|
|
|
bash -xe $BASE/new/neutron/neutron/tests/contrib/gate_hook.sh dsvm-functional
|
|
|
|
else
|
|
|
|
# Before kilo
|
|
|
|
bash -xe $BASE/new/neutron/neutron/tests/functional/contrib/gate_hook.sh
|
|
|
|
fi
|
2014-08-22 23:48:44 -07:00
|
|
|
}}
|
|
|
|
export -f gate_hook
|
|
|
|
|
2014-01-15 22:16:47 +00:00
|
|
|
function post_test_hook {{
|
2015-01-07 10:12:25 +01:00
|
|
|
if [[ -e $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh ]]; then
|
|
|
|
bash -xe $BASE/new/neutron/neutron/tests/contrib/post_test_hook.sh dsvm-functional
|
|
|
|
else
|
|
|
|
# Before kilo
|
|
|
|
bash -xe $BASE/new/neutron/neutron/tests/functional/contrib/post_test_hook.sh
|
|
|
|
fi
|
2014-01-15 22:16:47 +00:00
|
|
|
}}
|
|
|
|
export -f post_test_hook
|
2014-08-22 23:48:44 -07:00
|
|
|
|
2014-01-15 22:16:47 +00:00
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
|
|
|
|
publishers:
|
2014-08-06 11:26:13 -04:00
|
|
|
- test-results
|
2014-01-15 22:16:47 +00:00
|
|
|
- devstack-logs
|
|
|
|
- console-log
|
2015-03-06 22:58:34 +00:00
|
|
|
|
|
|
|
- job-template:
|
|
|
|
name: '{pipeline}-neutronclient-dsvm-functional{branch-designator}'
|
|
|
|
node: '{node}'
|
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
|
|
|
timeout: 65
|
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- devstack-checkout
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_TIMEOUT=60
|
2015-03-12 19:04:36 +09:00
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
2015-03-06 22:58:34 +00:00
|
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
|
|
export DEVSTACK_PROJECT_FROM_GIT=python-neutronclient
|
|
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
|
|
fi
|
|
|
|
|
|
|
|
function post_test_hook {{
|
|
|
|
# Configure and run functional tests
|
|
|
|
$BASE/new/python-neutronclient/neutronclient/tests/functional/hooks/post_test_hook.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:
|
|
|
|
- test-results
|
|
|
|
- devstack-logs
|
|
|
|
- console-log
|