project-config/jenkins/jobs/gnocchi.yaml
Julien Danjou 1fcdca8973 Run Gnocchi devstack tests for stable/1.0 against Kilo
Gnocchi is doing more releases than most OpenStack projects so there's
no e.g. stable/kilo branch. We need to do a mapping here so test-matrix
is not completely lost.

Change-Id: Id3c203ab7dcb0302b2cc70850fb5bca3d524113f
2015-04-24 17:25:06 +02:00

44 lines
1.2 KiB
YAML

- job-template:
name: '{pipeline}-gnocchi-dsvm-functional-{storagedriver}-{sqldriver}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 95
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=90
export PROJECTS="openstack/gnocchi $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi"
if [ "$ZUUL_BRANCH" = "stable/1.0" ] ; then
export OVERRIDE_ZUUL_BRANCH=stable/kilo
fi
function gate_hook {{
cd /opt/stack/new/gnocchi/devstack/gate
./gate_hook.sh {storagedriver} {sqldriver}
}}
export -f gate_hook
function post_test_hook {{
cd /opt/stack/new/gnocchi/devstack/gate
./post_test_hook.sh {storagedriver} {sqldriver}
}}
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