project-config/jenkins/jobs/blazar.yaml
Pierre Riteau 966d91397a Switch to the new DevStack plugin for Blazar
Change-Id: Ifff3a8ed2c1f6b9635ef27bfbeadb78ec06a6b9f
2016-12-06 19:18:47 +00:00

44 lines
1.5 KiB
YAML

- job:
name: gate-blazar-devstack-dsvm
node: ubuntu-xenial
wrappers:
- build-timeout:
timeout: 70
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export ENABLED_SERVICES=blazar,blazar-a,blazar-m,tempest
export PROJECTS="openstack/blazar $PROJECTS"
export PROJECTS="openstack/blazar-nova $PROJECTS"
export PROJECTS="openstack/python-blazarclient $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin blazar git://git.openstack.org/openstack/blazar"
# Construct a regex to limiting scope of tempest
r="^(?:tempest\.cli\.simple_read_only\.test_resource_.*)"
r="$r|^(?:tempest\.scenario\.test_resource_.*)"
export DEVSTACK_GATE_TEMPEST_REGEX="$r"
function pre_test_hook {
# Install blazar tempest integration
# Copying Tempest test suites
BLAZAR_TEMPEST_DIR=/opt/stack/new/blazar/contrib/tempest
TEMPEST_DIR=${TEMPEST_DIR:-/opt/stack/new/tempest}
cp -R $BLAZAR_TEMPEST_DIR/tempest/* $TEMPEST_DIR/tempest
}
export -f pre_test_hook
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