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>
This commit is contained in:
parent
a04b5c25aa
commit
17fea18223
52
jenkins/jobs/kingbird.yaml
Normal file
52
jenkins/jobs/kingbird.yaml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
- 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
|
@ -6125,6 +6125,12 @@
|
|||||||
jobs:
|
jobs:
|
||||||
- python-jobs
|
- python-jobs
|
||||||
- pypi-jobs
|
- pypi-jobs
|
||||||
|
- '{pipeline}-kingbird-dsvm-multiregion-{node-release}{suffix}':
|
||||||
|
pipeline: gate
|
||||||
|
node: ubuntu-xenial-2-node
|
||||||
|
node-release: ubuntu-xenial
|
||||||
|
suffix: '-nv'
|
||||||
|
branch-override: default
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: kloudbuster
|
name: kloudbuster
|
||||||
|
@ -11434,6 +11434,8 @@ projects:
|
|||||||
- name: publish-to-pypi
|
- name: publish-to-pypi
|
||||||
- name: python-jobs
|
- name: python-jobs
|
||||||
- name: check-requirements
|
- name: check-requirements
|
||||||
|
check:
|
||||||
|
- gate-kingbird-dsvm-multiregion-ubuntu-xenial-nv
|
||||||
|
|
||||||
- name: openstack/kloudbuster
|
- name: openstack/kloudbuster
|
||||||
template:
|
template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user