project-config/jenkins/jobs/diskimage-builder.yaml
Andreas Jaeger 4a61bc67f5 Change job-suffix to suffix
We have now some rather long job-template names, shorten them with
replacing job-suffix with suffix.

Before this change we had 1500 usages of job-suffix and 700 of just
suffix. This change therefore unifies to one setting.

Note that this does not change any job names at all, they are unchanged,
it changes and shortens only the names of job-templates.

Change-Id: I514df039a848d9f6619bca3adc05dfb84a761fc9
2016-12-08 22:05:01 +01:00

54 lines
1.5 KiB
YAML

- job-template:
name: 'gate-dib-dsvm-functests-{node}{suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 60
- timestamps
builders:
- shell: |
#!/bin/bash -eux
cd ~
/usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \
git://git.openstack.org \
openstack/diskimage-builder \
openstack/dib-utils
- shell: |
#!/bin/bash -xe
cd ~/openstack/diskimage-builder
/usr/local/jenkins/slave_scripts/install-distro-packages.sh
- shell: |
#!/bin/bash -eux
#
# We do things that might exceed the default 2GiB tmpfs, and
# use the larger mounted space.
cd ~
sudo mkdir /opt/dib_cache
sudo chown jenkins:jenkins /opt/dib_cache
export DIB_NO_TMPFS=1
export TMPDIR=/opt/dib_cache
virtualenv env
./env/bin/pip install $(pwd)/openstack/dib-utils
./env/bin/pip install $(pwd)/openstack/diskimage-builder
# TODO(pabelanger): Remove once we migrated to bindep
./openstack/diskimage-builder/tests/install_test_deps.sh
# activate the virtualenv so that any tools run by dib run
# using the python inside it
set +u
source ./env/bin/activate
set -u
./openstack/diskimage-builder/tests/run_functests.sh {tests}
set +u
deactivate
set -u
publishers:
- console-log