project-config/jenkins/jobs/aodh.yaml
ZhiQiang Fan 585a4aa586 fix aodh tempest gate job
aodh is not installed, because DEVSTACK_LOCAL_CONFIG is override with
ceilometer plugin

Change-Id: I59f6068ad8330a52c9bee23f89010d0d12f0e916
2016-04-24 23:07:57 +08:00

87 lines
2.4 KiB
YAML

- job-template:
name: '{pipeline}-aodh-dsvm-functional-{backend}'
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/aodh $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin aodh git://git.openstack.org/openstack/aodh"
function gate_hook {{
cd /opt/stack/new/aodh/devstack/gate
./gate_hook.sh {backend}
}}
export -f gate_hook
function post_test_hook {{
cd /opt/stack/new/aodh/aodh/tests/functional/hooks
./post_test_hook.sh {backend}
}}
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: 'gate-aodh-dsvm-tempest-plugin-{backend}{network}'
node: ubuntu-trusty
wrappers:
- build-timeout:
timeout: 130
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_REGEX="^aodh\."
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
export PROJECTS="openstack/aodh $PROJECTS"
export DEVSTACK_LOCAL_CONFIG="enable_plugin aodh git://git.openstack.org/openstack/aodh"
if [ "{backend}" = "postgresql" ] ; then
export DEVSTACK_GATE_POSTGRES=1
fi
if [ "x{network}" = "x-neutron" ] ; then
export DEVSTACK_GATE_NEUTRON=1
fi
function gate_hook {{
cd /opt/stack/new/aodh/devstack/gate
./gate_hook.sh {backend}
}}
export -f gate_hook
function post_test_hook {{
cd /opt/stack/new/aodh/aodh/tests/functional/hooks
./post_test_hook.sh {backend}
}}
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