From e186d21ff402f6dc57f9993d34169eb2394adbb5 Mon Sep 17 00:00:00 2001 From: Cullen Taylor Date: Tue, 18 Apr 2017 11:58:03 -0500 Subject: [PATCH] Add dib image build test to hoist 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 --- roles/zuul/files/jobs/dib.yaml | 19 +++++++++++++++++++ .../templates/etc/zuul/config/layout.yaml | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 roles/zuul/files/jobs/dib.yaml diff --git a/roles/zuul/files/jobs/dib.yaml b/roles/zuul/files/jobs/dib.yaml new file mode 100644 index 00000000..f606283c --- /dev/null +++ b/roles/zuul/files/jobs/dib.yaml @@ -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 diff --git a/roles/zuul/templates/etc/zuul/config/layout.yaml b/roles/zuul/templates/etc/zuul/config/layout.yaml index d7d71af8..e90291be 100644 --- a/roles/zuul/templates/etc/zuul/config/layout.yaml +++ b/roles/zuul/templates/etc/zuul/config/layout.yaml @@ -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: