project-config/jenkins/jobs/trove.yaml
Amrith Kumar 1fa3d6c717 Hot Fix: enable DEVSTACK_GATE_TROVE for trove's jobs
The devstack default (gate) doesn't clone trove anymore. This is
necessitated by changes in [1].

[1] https://review.openstack.org/#/c/446623/

Change-Id: I0e960c4bb5546a923b486e22179dfe3c351779ed
Related: Id2caf9561b361c1d4950856423282535d067e015
Related: Icb3c18ab955b53c028008d6c374301c1e6ca0ccd
Related: I787944217b8cfa856aae3af4a9fad0deb4d4cac5
2017-03-18 07:05:20 -04:00

235 lines
8.3 KiB
YAML

- job-template:
description: This is a legacy job that relies on trove-integration and will be removed in Queen.
name: 'gate-trove-legacy-functional-dsvm-{datastore}{suffix}'
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 150
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
ENABLED_SERVICES=tempest
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
export ENABLED_SERVICES
export PYTHONUNBUFFERED=true
export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
export DEVSTACK_GATE_TROVE=1
export PROJECTS="openstack/python-troveclient $PROJECTS"
export PROJECTS="openstack/trove-dashboard $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
export PROJECTS="openstack/tripleo-image-elements $PROJECTS"
export PROJECTS="openstack/diskimage-builder $PROJECTS"
export PROJECTS="openstack/trove-integration $PROJECTS"
function post_test_hook {{
export BRIDGE_IP=10.1.0.1
export DEST=$BASE/new
export PATH_DEVSTACK_SRC=$DEST/devstack
cd /opt/stack/new/trove-integration/scripts
./redstack dsvm-gate-tests {datastore}
}}
export -f post_test_hook
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log
- job-template:
description: This job uses image elements in the trove repository.
name: 'gate-trove-functional-dsvm-{datastore}-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 180
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
ENABLED_SERVICES=tempest
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
export ENABLED_SERVICES
export PYTHONUNBUFFERED=true
export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
export DEVSTACK_GATE_TROVE=1
export PROJECTS="openstack/python-troveclient $PROJECTS"
export PROJECTS="openstack/trove-dashboard $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
export PROJECTS="openstack/tripleo-image-elements $PROJECTS"
export PROJECTS="openstack/diskimage-builder $PROJECTS"
function post_test_hook {{
export BRIDGE_IP=10.1.0.1
export DEST=$BASE/new
export PATH_DEVSTACK_SRC=$DEST/devstack
cd /opt/stack/new/trove/integration/scripts
./trovestack dsvm-gate-tests {datastore}
}}
export -f post_test_hook
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log
- job-template:
description: This is a legacy job that relies on trove-integration and will be removed in Queen.
name: 'gate-trove-legacy-scenario-dsvm-{datastore}{suffix}'
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 150
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
ENABLED_SERVICES=tempest
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
export ENABLED_SERVICES
export PYTHONUNBUFFERED=true
export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
export DEVSTACK_GATE_TROVE=1
export PROJECTS="openstack/python-troveclient $PROJECTS"
export PROJECTS="openstack/trove-dashboard $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
export PROJECTS="openstack/tripleo-image-elements $PROJECTS"
export PROJECTS="openstack/diskimage-builder $PROJECTS"
export PROJECTS="openstack/trove-integration $PROJECTS"
function post_test_hook {{
export BRIDGE_IP=10.1.0.1
export DEST=$BASE/new
export PATH_DEVSTACK_SRC=$DEST/devstack
cd /opt/stack/new/trove-integration/scripts
./redstack dsvm-gate-tests {datastore} {datastore}_supported
}}
export -f post_test_hook
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log
- job-template:
description: This job uses image elements in the trove repository.
name: 'gate-trove-scenario-dsvm-{datastore}-{group}-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 180
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
ENABLED_SERVICES=tempest
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
export ENABLED_SERVICES
export PYTHONUNBUFFERED=true
export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
export DEVSTACK_GATE_TROVE=1
export PROJECTS="openstack/python-troveclient $PROJECTS"
export PROJECTS="openstack/trove-dashboard $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
export PROJECTS="openstack/tripleo-image-elements $PROJECTS"
export PROJECTS="openstack/diskimage-builder $PROJECTS"
function post_test_hook {{
export BRIDGE_IP=10.1.0.1
export DEST=$BASE/new
export PATH_DEVSTACK_SRC=$DEST/devstack
cd /opt/stack/new/trove/integration/scripts
./trovestack dsvm-gate-tests {datastore} {datastore}-supported-{group}
}}
export -f post_test_hook
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log
- job-template:
name: '{pipeline}-tempest-dsvm-neutron-src-python-troveclient-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 160
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_LOCAL_CONFIG="enable_plugin trove git://git.openstack.org/openstack/trove"
export DEVSTACK_GATE_TROVE=1
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_FULL=1
export DEVSTACK_GATE_NEUTRON=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
export PROJECTS="openstack/python-troveclient $PROJECTS"
export PROJECTS="openstack/trove-dashboard $PROJECTS"
export DEVSTACK_PROJECT_FROM_GIT=python-troveclient
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
./safe-devstack-vm-gate-wrap.sh
publishers:
- devstack-logs
- console-log