project-config/jenkins/jobs/cinder.yaml
John Griffith 2e13f20fbe Add functional test job for cinderclient
We have functional tests merged in python-cinderclient now,
this patch adds the job to project-config to configure and
run.

Start of as experimental to make sure things are working.

Change-Id: Ie87b0d687d6be5ca74f4e3a110aa5cc754aa7085
2015-05-14 14:22:47 -06:00

37 lines
1.0 KiB
YAML

- job-template:
name: '{pipeline}-cinderclient-dsvm-functional{branch-designator}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 65
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=60
export BRANCH_OVERRIDE={branch-override}
export DEVSTACK_PROJECT_FROM_GIT=python-cinderclient
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function post_test_hook {{
# Configure and run functional tests
$BASE/new/python-cinderclient/cinderclient/tests/functional/hooks/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