project-config/jenkins/jobs/gnocchi.yaml
gord chung f2435adf1e set gnocchi 2.2 and 3.0 to correct branches
- test gnocchi 2.2 against newton as it has dependency on newton tooz.
- test newly tagged gnocchi 3.0 against newton
- test newton against gnocchi 3.0

Change-Id: Iad97ab98fa7d7c8780b1ea096e04440ca0c040dd
2016-09-22 13:20:41 +00:00

50 lines
1.6 KiB
YAML

- job-template:
name: '{pipeline}-gnocchi-dsvm-functional-{storagedriver}-{sqldriver}-{node}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 100
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export PROJECTS="openstack/gnocchi $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi"
if [ "{storagedriver}" == "ceph" ]; then
export PROJECTS="openstack/devstack-plugin-ceph $PROJECTS"
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin devstack-plugin-ceph git://git.openstack.org/openstack/devstack-plugin-ceph"
fi
case "$ZUUL_BRANCH" in
"stable/1.3") export OVERRIDE_ZUUL_BRANCH=stable/liberty ;;
"stable/2.0"|"stable/2.1") export OVERRIDE_ZUUL_BRANCH=stable/mitaka ;;
"stable/2.2"|"stable/3.0") export OVERRIDE_ZUUL_BRANCH=stable/newton ;;
esac
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