Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Add dib image build test to hoist
Browse files Browse the repository at this point in the history
Currently, we have no tests for dib image builds using the elements
defined in hoist. This results in untested image builds ending up
in prod. This will add a job for that.

Implements: BonnyCI/projman#219

Signed-off-by: Cullen Taylor <[email protected]>
  • Loading branch information
Cullen Taylor committed Apr 24, 2017
1 parent d112e7b commit e186d21
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions roles/zuul/files/jobs/dib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- job:
name: 'dib-build'
node: 'ubuntu-xenial'
builders:
shell: |
virtualenv $HOME/dib-build
. $HOME/dib-build/bin/activate
pip install diskimage-builder
git clone https://github.com/BonnyCI/hoist.git /opt/hoist
export ELEMENTS_PATH=/opt/hoist/roles/nodepool/files/etc/nodepool/elements/nodepool
disk-image-create -x -t qcow2 --checksum --no-tmpfs \
--qemu-img-options 'compat=0.10' \
-o /opt/nodepool/images/ubuntu-xenial \
ubuntu-minimal vm
publishers:
- console-log
- bonnyci-logs
2 changes: 2 additions & 0 deletions roles/zuul/templates/etc/zuul/config/layout.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ projects:
- name: BonnyCI/hoist
check_github:
- bonnyci-run-check-multinode
- dib-build
gate_github:
- bonnyci-run-gate-multinode
- dib-build

- name: BonnyCI/sandbox
check_github:
Expand Down

0 comments on commit e186d21

Please sign in to comment.