project-config/jenkins/jobs/magnum.yaml
Eli Qiao 6b2887e645 Magnum: Add new job to do mesos functional testing
Adds gate_hook to magnum jobs.
Adds new pipe line to do mesos functional testing, set it to non-voting
first.

Implements: blueprint mesos-functional-testing
Depend-On: I8ee53de4d34aa79d037901e599fc6409a7de2e72
Change-Id: I9574c349e5f7a4f3fa3f8c4fdf53328fe35e0dee
2015-12-29 09:12:30 +08:00

56 lines
1.8 KiB
YAML

- job-template:
name: '{pipeline}-functional-dsvm-magnum-{coe}{job-suffix}'
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_NEUTRON=1
# Enable tempest for tempest plugin
export ENABLED_SERVICES=tempest
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export PROJECTS="openstack/magnum $PROJECTS"
export PROJECTS="openstack/python-magnumclient $PROJECTS"
export PROJECTS="openstack/barbican $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin magnum git://git.openstack.org/openstack/magnum"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin ceilometer git://git.openstack.org/openstack/ceilometer"
# Keep localrc to be able to set some vars in post_test_hook
export KEEP_LOCALRC=1
function gate_hook {{
cd /opt/stack/new/magnum/
./magnum/tests/contrib/gate_hook.sh {coe}
}}
export -f gate_hook
function post_test_hook {{
source $BASE/new/devstack/accrc/admin/admin
cd /opt/stack/new/magnum/
./magnum/tests/contrib/post_test_hook.sh {coe}
}}
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:
- devstack-logs
- console-log