project-config/jenkins/jobs/diskimage-builder.yaml
Andreas Jaeger c28c95a6ba dib-buildimage-debian-ironic: Use ubuntu-trusty
Use ubuntu-trusty instead of bare-trusty as node.

Change-Id: I2f76143e616e82f19e7d3fc4d313fa6d639d5797
2016-03-09 20:15:08 +01:00

116 lines
3.2 KiB
YAML

- job-template:
name: 'gate-dib-dsvm-functests-{node}'
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
export PATH=$PATH:$(pwd)/openstack/dib-utils/bin
export PATH=$PATH:$(pwd)/openstack/diskimage-builder/bin
./openstack/diskimage-builder/tests/install_test_deps.sh
./openstack/diskimage-builder/tests/run_functests.sh
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
# this is temporary and should replace the other job when it is
# working.
- job-template:
name: 'gate-dib-dsvm-functests-{node}-pip'
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
./openstack/diskimage-builder/tests/run_functests.sh
publishers:
- console-log