Maru Newby e250eb2f34 Externalize hooks for neutron functional jobs
Maintaining hook behavior in the config repo has the drawback of
being hard to test.  This change externalizes the hook definitions
for the neutron functional jobs so they can be maintained and
gated on via the neutron repo.

The supporting neutron change to master:

https://review.openstack.org/#/c/114717/

Change-Id: If5192cb22b5613c5ebcab63316c646ea3ab482df
2014-08-26 14:32:56 +02:00

44 lines
1.3 KiB
YAML

- job-template:
name: '{pipeline}-neutron-dsvm-functional{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=0
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/functional/contrib/gate_hook.sh
}}
export -f gate_hook
function post_test_hook {{
bash -xe $BASE/new/neutron/neutron/tests/functional/contrib/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