project-config/jenkins/jobs/kingbird.yaml
joehuang 17fea18223 Add multiregion check job for Kingbird
Kingbird is a service to provide resource management
across multi-region of OpenStack. This patch is to enable
multi-region check job for Kingbird project.

At first the check job is non-voting job.

Change-Id: I1c94bd4bc19909ba9773df343dbd493801867b2b
Signed-off-by: joehuang <joehuang@huawei.com>
2017-04-13 03:50:08 -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/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