59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
# Job for Patrole+Tempest
|
|
- job-template:
|
|
name: 'gate-tempest-dsvm-patrole-{rbac-role}-{node}{suffix}'
|
|
node: '{node}'
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 70
|
|
- timestamps
|
|
|
|
builders:
|
|
- print-template-name:
|
|
template-name: "{template-name}"
|
|
- link-logs
|
|
- net-info
|
|
- devstack-checkout
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
# Ensure that tempest set up is executed, but do not automatically
|
|
# execute tempest tests; they are executed in post_test_hook.
|
|
export DEVSTACK_GATE_TEMPEST=1
|
|
export DEVSTACK_GATE_NEUTRON=1
|
|
export DEVSTACK_GATE_TEMPEST_NOTESTS=1
|
|
|
|
export ENABLED_SERVICES=tempest
|
|
|
|
export DEVSTACK_LOCAL_CONFIG="enable_plugin patrole git://git.openstack.org/openstack/patrole"
|
|
|
|
export PROJECTS="openstack/patrole $PROJECTS"
|
|
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
fi
|
|
|
|
# Keep localrc to be able to set some vars in pre_test_hook
|
|
export KEEP_LOCALRC=1
|
|
|
|
function pre_test_hook {{
|
|
source $BASE/new/patrole/contrib/pre_test_hook.sh \
|
|
{rbac-role}
|
|
}}
|
|
export -f pre_test_hook
|
|
|
|
function post_test_hook {{
|
|
source $BASE/new/patrole/contrib/post_test_hook.sh \
|
|
{rbac-role}
|
|
}}
|
|
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 |