project-config/jenkins/jobs/senlin.yaml
yanyanhu 7ab990bed8 Enable pre_test_hook for Senlin functional test
This patch enables pre_test_hook for functional test of Senlin
project.

Change-Id: Ieec6095d3256348552f2c7eae5df5cf30cd3f588
2015-11-16 20:12:48 -05:00

45 lines
1.3 KiB
YAML

- job-template:
name: '{pipeline}-senlin-dsvm-functional{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 BRANCH_OVERRIDE={branch-override}
export PROJECTS="openstack/senlin $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin senlin https://git.openstack.org/openstack/senlin"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_service sl-api sl-eng"
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function pre_test_hook {{
cd /opt/stack/new/senlin/senlin/tests/functional/
./pre_test_hook.sh
}}
export -f pre_test_hook
function post_test_hook {{
cd /opt/stack/new/senlin/senlin/tests/functional/
./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