f765bc7524
This commit allows the definition of non-voting gate jobs by defining a new job-suffix. 'extras' was added as a new job pre-suffix because just 'nv' implies we would be testing the same things as the non-postfixed variant. This was done to facilitate adding a Gentoo non-voting gate job, also in this commit. Change-Id: I08f35397a4cce05b90d88077922dc38ece5c2b55 Depends-On: I0d2768a912b350e1b2cf40d2fd227fdc767b1bcb Signed-off-by: Matthew Thode <mthode@mthode.org>
96 lines
2.7 KiB
YAML
96 lines
2.7 KiB
YAML
- job-template:
|
|
name: 'gate-dib-dsvm-functests-{node}{job-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
|
|
|
|
virtualenv env
|
|
|
|
./env/bin/pip install $(pwd)/openstack/dib-utils
|
|
./env/bin/pip install $(pwd)/openstack/diskimage-builder
|
|
|
|
./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
|
|
|
|
- job:
|
|
name: 'dib-buildimage-debian-ironic'
|
|
node: ubuntu-trusty
|
|
|
|
wrappers:
|
|
- build-timeout:
|
|
timeout: 60
|
|
- timestamps
|
|
|
|
builders:
|
|
- link-logs
|
|
- net-info
|
|
- install-distro-packages
|
|
- 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
|
|
|
|
export PATH=$PATH:$(pwd)/openstack/dib-utils/bin
|
|
export PATH=$PATH:$(pwd)/openstack/diskimage-builder/bin
|
|
|
|
./openstack/diskimage-builder/tests/install_test_deps.sh
|
|
|
|
DIB_RELEASE="jessie" disk-image-create \
|
|
-o $WORKSPACE/debian-jessie-ironic-agent \
|
|
debian ironic-agent
|
|
|
|
DIB_RELEASE="jessie" disk-image-create \
|
|
-o $WORKSPACE/debian-jessie-simple-init \
|
|
debian vm simple-init enable-serial-console
|
|
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'tarballs.openstack.org'
|
|
files:
|
|
- source: 'debian-jessie-ironic-agent.vmlinuz'
|
|
target: >
|
|
'tarballs/diskimage-builder/images/ironic-agent/debian-jessie/'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- source: 'debian-jessie-ironic-agent.initramfs'
|
|
target: >
|
|
'tarballs/diskimage-builder/images/ironic-agent/debian-jessie/'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- source: 'debian-jessie-simple-init.qcow2'
|
|
target: >
|
|
'tarballs/diskimage-builder/images/simple-init/debian-jessie/'
|
|
keep-hierarchy: false
|
|
copy-after-failure: false
|
|
- console-log
|