project-config/jenkins/jobs/tripleo.yaml
Derek Higgins f5c40879d7 Set ZUUL_BRANCH and ZUUL_REF
These arn't set for periodic jobs adn devstack-gate complains.

Change-Id: I926c88a8254ac2775bb40d0dbff553369c10f814
2015-11-06 11:29:48 +00:00

39 lines
1.6 KiB
YAML

- job-template:
name: '{trigger}-tripleo-ci-{jobname}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 175
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export TOCI_JOBTYPE={type}
# ZUUL Doesn't set these for periodic jobs
export ZUUL_BRANCH=${{ZUUL_BRANCH:-master}}
export ZUUL_REF=${{ZUUL_REF:-None}}
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=170
export DEVSTACK_GATE_TEMPEST=0
export DEVSTACK_GATE_EXERCISES=0
export PROJECTS="openstack/instack openstack/instack-undercloud openstack/python-ironic-inspector-client openstack/python-tripleoclient openstack/python-tuskarclient openstack/tripleo-puppet-elements openstack/puppet-ceph openstack/puppet-ceilometer openstack/puppet-cinder openstack/puppet-glance openstack/puppet-heat openstack/puppet-horizon openstack/puppet-keystone openstack/puppet-neutron openstack/puppet-nova openstack/puppet-sahara openstack/puppet-swift openstack/puppet-vswitch openstack/puppet-openstacklib openstack/puppet-tripleo openstack/puppet-ironic openstack/puppet-openstack_extras openstack/puppet-tuskar openstack/tripleo-common openstack/tuskar"
sudo chown -hR $(whoami) /opt/git
function gate_hook {{
bash -xe /opt/stack/new/tripleo-ci/toci_gate_test.sh
}}
export -f gate_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