system-config/modules/openstack_project/files/jenkins_job_builder/config/neutron-api.yaml
Maru Newby 18c4bfebf6 Fix neutron-dsvm-api job
Configure the neutron-dsvm-api job to install Neutron and testonly
dependencies.

Change-Id: I10e1bd5bdc2f926775bfd70922bc6a3ae0448816
Implements: bp retargetable-functional-testing
2014-07-29 22:08:43 +00:00

49 lines
1.7 KiB
YAML

- job-template:
name: '{pipeline}-neutron-dsvm-api{branch-designator}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 125
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=120
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_EXERCISES=0
export DEVSTACK_GATE_NEUTRON=1
export DEVSTACK_GATE_INSTALL_TESTONLY=1
export BRANCH_OVERRIDE={branch-override}
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
fi
function post_test_hook {{
cd $BASE/new/neutron
# Ensure that the executing user can invoke tox on the
# neutron source tree.
sudo chown -R tempest:stack $BASE/new/neutron
echo "Configuring venv for neutron api test suite"
# Manually install tempest pending a decision on how
# best to include tempest as an explicit test dependency
# of neutron.
sudo -H -u tempest tox -e api --notest
sudo -H -u tempest .tox/api/bin/pip install $BASE/new/tempest
echo "Running neutron api test suite"
sudo -H -u tempest tox -e api
}}
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:
- devstack-logs
- console-log