system-config/modules/openstack_project/files/jenkins_job_builder/config/neutron-api.yaml
Khai Do fd4d79542e Switch jobs to use the build-timeout macro
This change configures all jobs to use the new build-timeout macro.
This macro enables the following:
1. exports a 'BUILD_TIMEOUT' environment variable which is set to the
   timeout value.
2. sets the build to a failed state when a timeout occurs.

Change-Id: Iebda7cccc2f808805a9b2d744c11892d1bf3bdef
2014-06-29 08:26:47 -07:00

47 lines
1.6 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 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