Add native Zuul v3 buildimages jobs

Native Zuul v3 jobs for the image building tests, which matches
the existing jobs.

Change-Id: I0485093a87d9cc905682fdb8886fa44228525e87
This commit is contained in:
Luigi Toscano 2017-10-16 14:37:39 +02:00
parent 20d14b1751
commit f3f5613238
5 changed files with 88 additions and 0 deletions

65
.zuul.yaml Normal file
View File

@ -0,0 +1,65 @@
- project:
name: openstack/sahara-image-elements
check:
jobs:
- sahara-image-elements-buildimages-ambari:
voting: false
- sahara-image-elements-buildimages-cloudera:
voting: false
- sahara-image-elements-buildimages-mapr:
voting: false
- sahara-image-elements-buildimages-plain:
voting: false
- sahara-image-elements-buildimages-spark:
voting: false
- sahara-image-elements-buildimages-storm:
voting: false
- sahara-image-elements-buildimages-vanilla:
voting: false
- job:
name: sahara-image-elements-buildimages-basejob
timeout: 5400
run: playbooks/buildimages/run
- job:
name: sahara-image-elements-buildimages-ambari
parent: sahara-image-elements-buildimages-basejob
vars:
sahara_plugin: ambari
- job:
name: sahara-image-elements-buildimages-cloudera
parent: sahara-image-elements-buildimages-basejob
vars:
sahara_plugin: cloudera
- job:
name: sahara-image-elements-buildimages-mapr
parent: sahara-image-elements-buildimages-basejob
vars:
sahara_plugin: mapr
- job:
name: sahara-image-elements-buildimages-plain
parent: sahara-image-elements-buildimages-basejob
vars:
sahara_plugin: plain
- job:
name: sahara-image-elements-buildimages-spark
parent: sahara-image-elements-buildimages-basejob
vars:
sahara_plugin: spark
- job:
name: sahara-image-elements-buildimages-storm
parent: sahara-image-elements-buildimages-basejob
vars:
sahara_plugin: storm
- job:
name: sahara-image-elements-buildimages-vanilla
parent: sahara-image-elements-buildimages-basejob
vars:
sahara_plugin: vanilla

View File

@ -0,0 +1,3 @@
- hosts: all
roles:
- build-sahara-images-dib

View File

@ -0,0 +1,13 @@
Build Sahara Images with DIB
**Role Variables**
.. zuul:rolevar:: sahara_build_directory
:default: /var/tmp/sahara-image-build
The base directory used for the build process.
.. zuul:rolevar:: sahara_plugin
:default: vanilla
The plugin whose images will be built.

View File

@ -0,0 +1,3 @@
---
sahara_build_directory: /var/tmp/sahara-image-build
sahara_plugin: vanilla

View File

@ -0,0 +1,4 @@
- name: Build all the images for the selected plugin
command: ./tools/gate/build-images "{{ sahara_plugin }}"
args:
chdir: "{{ zuul.project.src_dir }}"