project-config/jenkins/jobs/senlin.yaml
yanyanhu d2087843a1 Fix senlin integration test job
This patch fixes senlin integration test job by
setting DEVSTACK_GATE_NEUTRON=1 in job template.
Without it, neutron network environment won't be
set up correctly.

Change-Id: Idc607edb827f77a2e3a336000ad09f55655d4cbb
2016-08-05 03:45:26 -04:00

66 lines
2.3 KiB
YAML

- job-template:
name: '{pipeline}-senlin-dsvm-tempest-{test_type}{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 130
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export BRANCH_OVERRIDE={branch-override}
export PROJECTS="openstack/senlin $PROJECTS"
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_TEMPEST=1
export DEVSTACK_GATE_TEMPEST_ALL_PLUGINS=1
export DEVSTACK_GATE_TEMPEST_REGEX="senlin.tests.tempest.{test_type}"
export DEVSTACK_LOCAL_CONFIG="enable_plugin senlin https://git.openstack.org/openstack/senlin"
if [ "{test_type}" == "api" ]||[ "{test_type}" == "functional" ];then
export SENLIN_BACKEND="openstack_test"
else
export SENLIN_BACKEND="openstack"
ENABLED_SERVICES=key,
ENABLED_SERVICES+=n-api,n-crt,n-cpu,n-sch,n-cond,
ENABLED_SERVICES+=cinder,c-api,c-vol,c-sch,c-bak,
ENABLED_SERVICES+=g-api,g-reg,
ENABLED_SERVICES+=heat,h-api,h-api-cfn,h-api-cw,h-eng,
ENABLED_SERVICES+=q-agt,q-dhcp,q-l3,q-meta,q-metering,q-svc,
# Enable LBaaS V2 plugin
export PROJECTS="openstack/neutron-lbaas $PROJECTS"
ENABLED_SERVICES+=",q-lbaasv2"
export ENABLED_SERVICES
export DEVSTACK_LOCAL_CONFIG+=$'\n'"enable_plugin neutron-lbaas https://git.openstack.org/openstack/neutron-lbaas"
fi
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function pre_test_hook {{
cd /opt/stack/new/senlin/senlin/tests/tempest/
./pre_test_hook.sh
}}
export -f pre_test_hook
function post_test_hook {{
cd /opt/stack/new/senlin/senlin/tests/tempest/
./post_test_hook.sh
}}
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