system-config/modules/openstack_project/files/jenkins_job_builder/config/trove.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

64 lines
1.9 KiB
YAML

- job-template:
name: 'gate-trove-buildimage-{datastore}'
node: 'bare-precise || bare-trusty'
builders:
- link-logs
- net-info
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
sudo mkdir -p /opt/trove-image-build
sudo chown $(whoami) /opt/trove-image-build
export DEST=/opt/trove-image-build
export KEY_DIR=`pwd`/scripts/files/keys
cd scripts
./redstack build-image {datastore}
mv $HOME/images/ubuntu_{datastore}/ubuntu_{datastore}.qcow2 $WORKSPACE/{datastore}.qcow2
publishers:
- scp:
site: 'tarballs.openstack.org'
files:
- source: '{datastore}.qcow2'
target: 'tarballs/trove/images/ubuntu'
keep-hierarchy: false
copy-after-failure: false
- console-log
- job-template:
name: 'gate-trove-functional-dsvm-{datastore}'
node: 'devstack-precise || devstack-trusty'
wrappers:
- build-timeout:
timeout: 85
- timestamps
builders:
- link-logs
- net-info
- devstack-checkout
- shell: |
#!/bin/bash -xe
export PYTHONUNBUFFERED=true
export DEVSTACK_GATE_TIMEOUT=80
export ENABLED_SERVICES=s-proxy,s-object,s-container,s-account,trove,tr-api,tr-tmgr,tr-cond
export PROJECTS="openstack/trove-integration openstack/diskimage-builder openstack/tripleo-image-elements $PROJECTS"
function post_test_hook {{
export BRIDGE_IP=10.1.0.1
cd /opt/stack/new/trove-integration/scripts
./redstack kick-start {datastore}
./redstack int-tests
}}
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