project-config/jenkins/jobs/kingbird.yaml
joehuang 89053b6c8d Correct the folder for post_test_hook.sh
The folder for post_test_hook.sh is incorrect in kingbird
jenkin job, it should be in kingbird/tests/tempest but
not kingbird/tempest.

Change-Id: If8b7e5067331a996baac8f05c25d7a804c6504ae
Signed-off-by: joehuang <joehuang@huawei.com>
2017-04-18 09:00:23 -04:00

53 lines
1.6 KiB
YAML

- job-template:
name: '{pipeline}-kingbird-dsvm-multiregion-{node-release}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 90
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/kingbird $PROJECTS"
export DEVSTACK_GATE_CONFIGDRIVE=0
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=0
export DEVSTACK_GATE_TEMPEST_REGEX="kingbird.tests.tempest"
# Keep localrc to be able to set some vars in pre_test_hook
export KEEP_LOCALRC=1
# Enable multinode mode, so that the subnode(the second node)
# will be configured to run as second region in pre_test_hook.sh
export DEVSTACK_GATE_TOPOLOGY="multinode"
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function gate_hook {{
bash -xe $BASE/new/kingbird/kingbird/tests/tempest/gate_hook.sh
}}
export -f gate_hook
function post_test_hook {{
bash -xe $BASE/new/kingbird/kingbird/tests/tempest/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