- job-template: name: '{pipeline}-gnocchi-dsvm-functional-{storagedriver}-{sqldriver}' 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 ;; 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 - job-template: name: '{pipeline}-gnocchi-grenade-dsvm-functional-{storagedriver}-{sqldriver}-{oldbranch}' node: '{node}' wrappers: - build-timeout: timeout: 180 - timestamps builders: - link-logs - net-info - devstack-checkout - shell: | #!/bin/bash -xe export PYTHONUNBUFFERED=true export PROJECTS="openstack-dev/grenade openstack/gnocchi $PROJECTS" export DEVSTACK_GATE_GRENADE=pullup export DEVSTACK_LOCAL_CONFIG="enable_plugin gnocchi git://git.openstack.org/openstack/gnocchi" export GRENADE_PLUGINRC="enable_grenade_plugin gnocchi https://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 "{oldbranch}" in "1.x") export OVERRIDE_GNOCCHI_PROJECT_BRANCH=stable/1.3;; "2.x") STABLE_BRANCH=${{ZUUL_BRANCH#stable/}} if [ "${{STABLE_BRANCH}}" != "${{ZUUL_BRANCH}}" ]; then # We are on stable branch MAJOR=${{STABLE_BRANCH%.?}} MINOR=${{STABLE_BRANCH#?.}} export OVERRIDE_GNOCCHI_PROJECT_BRANCH=stable/${{MAJOR}}.$((MINOR - 1)) else # We are on master export OVERRIDE_GNOCCHI_PROJECT_BRANCH=stable/2.1 fi ;; esac case "$ZUUL_BRANCH" in "stable/2.0"|"stable/2.1") export OVERRIDE_ZUUL_BRANCH=stable/mitaka ;; 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