project-config/jenkins/jobs/tricircle.yaml
Chaoyi Huang d94ff3dc0d Add the Tricircle functional test job
The Tricircle provides an OpenStack API gateway and networking automation
to allow multiple OpenStack instances, spanning in one site or multiple
sites or in hybrid cloud, to be managed as a single OpenStack cloud.

As the OpenStack API gateway, the Tricircle should be able to accept
OpenStack API and forward it to regarding bottom OpenStack.

The Tricircle will be installed together with Nova/Cinder/Neutron in
the DevStack, and reuse the tempest use cases to test the Tricircle and
bottom OpenStack which are managed by the Tricircle.

This patch is to add the functional test job in the project-config.
The hook scripts which will be used in the functional test job are
merged in the patch: https://review.openstack.org/#/c/329300/

Change-Id: Ic485432739f9e61242623c0f7b457a80023fe627
Signed-off-by: Chaoyi Huang <joehuang@huawei.com>
2016-06-28 13:58:12 +08:00

51 lines
1.6 KiB
YAML

- job-template:
name: '{pipeline}-tricircle-dsvm-functional{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 130
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export BRANCH_OVERRIDE={branch-override}
export PROJECTS="openstack/tricircle $PROJECTS"
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=0
export DEVSTACK_GATE_TEMPEST_REGEX="tricircle.tempestplugin"
export DEVSTACK_LOCAL_CONFIG="Q_ENABLE_TRICIRCLE=True"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin tricircle https://git.openstack.org/openstack/tricircle/"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service t-api t-ngw t-cgw t-job"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"disable_service n-net"
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function pre_test_hook {{
cd /opt/stack/new/tricircle/tricircle/tempestplugin/
./pre_test_hook.sh
}}
export -f pre_test_hook
function post_test_hook {{
cd /opt/stack/new/tricircle/tricircle/tempestplugin/
./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