project-config/jenkins/jobs/blazar.yaml
Andreas Jaeger 9e8c66a93a Increase devstack timeout
Increase devstack wrapper timeout by 5 mins since devstack-gate will use
10 mins - instead of the previous 5 mins - as buffer.

This is needed in this form only for those jobs changed by
21837612a5.

Change-Id: Ida6e84f6c9458d46b7c3792bf57eff27dd72b258
Needed-By: Iea866e4cc40e149e598f35e010ec855937bdf9ae
2016-02-07 09:16:13 +01:00

50 lines
1.7 KiB
YAML

- job:
name: gate-blazar-devstack-dsvm
node: devstack-trusty
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"
# 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 devstack integration
BLAZAR_BASE=/opt/stack/new/blazar
BLAZAR_DEVSTACK_BASE=$BLAZAR_BASE/contrib/devstack
DEVSTACK_BASE=/opt/stack/new/devstack
cp $BLAZAR_DEVSTACK_BASE/lib/* $DEVSTACK_BASE/lib
cp $BLAZAR_DEVSTACK_BASE/extras.d/* $DEVSTACK_BASE/extras.d
# Install blazar tempest integration
# Copying Tempest test suites
BLAZAR_TEMPEST_DIR=$BLAZAR_BASE/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