summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <ltoscano@redhat.com>2017-10-16 14:37:39 +0200
committerLuigi Toscano <ltoscano@redhat.com>2017-10-16 14:37:39 +0200
commitf3f5613238a58a43281c917a49ca23eae65db16e (patch)
tree32992785e277a0ee0af5565bbbc5cc7d88587393
parent20d14b17511db586563991436dd103d93eb430f5 (diff)
Add native Zuul v3 buildimages jobs8.0.0.0b1
Native Zuul v3 jobs for the image building tests, which matches the existing jobs. Change-Id: I0485093a87d9cc905682fdb8886fa44228525e87
Notes
Notes (review): Code-Review+2: Telles Mota Vidal Nóbrega <tenobreg@redhat.com> Workflow+1: Telles Mota Vidal Nóbrega <tenobreg@redhat.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Thu, 19 Oct 2017 18:53:19 +0000 Reviewed-on: https://review.openstack.org/511080 Project: openstack/sahara-image-elements Branch: refs/heads/master
-rw-r--r--.zuul.yaml65
-rw-r--r--playbooks/buildimages/run.yaml3
-rw-r--r--roles/build-sahara-images-dib/README.rst13
-rw-r--r--roles/build-sahara-images-dib/defaults/main.yaml3
-rw-r--r--roles/build-sahara-images-dib/tasks/main.yaml4
5 files changed, 88 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
new file mode 100644
index 0000000..29b32e1
--- /dev/null
+++ b/.zuul.yaml
@@ -0,0 +1,65 @@
1- project:
2 name: openstack/sahara-image-elements
3 check:
4 jobs:
5 - sahara-image-elements-buildimages-ambari:
6 voting: false
7 - sahara-image-elements-buildimages-cloudera:
8 voting: false
9 - sahara-image-elements-buildimages-mapr:
10 voting: false
11 - sahara-image-elements-buildimages-plain:
12 voting: false
13 - sahara-image-elements-buildimages-spark:
14 voting: false
15 - sahara-image-elements-buildimages-storm:
16 voting: false
17 - sahara-image-elements-buildimages-vanilla:
18 voting: false
19
20- job:
21 name: sahara-image-elements-buildimages-basejob
22 timeout: 5400
23 run: playbooks/buildimages/run
24
25- job:
26 name: sahara-image-elements-buildimages-ambari
27 parent: sahara-image-elements-buildimages-basejob
28 vars:
29 sahara_plugin: ambari
30
31- job:
32 name: sahara-image-elements-buildimages-cloudera
33 parent: sahara-image-elements-buildimages-basejob
34 vars:
35 sahara_plugin: cloudera
36
37- job:
38 name: sahara-image-elements-buildimages-mapr
39 parent: sahara-image-elements-buildimages-basejob
40 vars:
41 sahara_plugin: mapr
42
43- job:
44 name: sahara-image-elements-buildimages-plain
45 parent: sahara-image-elements-buildimages-basejob
46 vars:
47 sahara_plugin: plain
48
49- job:
50 name: sahara-image-elements-buildimages-spark
51 parent: sahara-image-elements-buildimages-basejob
52 vars:
53 sahara_plugin: spark
54
55- job:
56 name: sahara-image-elements-buildimages-storm
57 parent: sahara-image-elements-buildimages-basejob
58 vars:
59 sahara_plugin: storm
60
61- job:
62 name: sahara-image-elements-buildimages-vanilla
63 parent: sahara-image-elements-buildimages-basejob
64 vars:
65 sahara_plugin: vanilla
diff --git a/playbooks/buildimages/run.yaml b/playbooks/buildimages/run.yaml
new file mode 100644
index 0000000..4535b45
--- /dev/null
+++ b/playbooks/buildimages/run.yaml
@@ -0,0 +1,3 @@
1- hosts: all
2 roles:
3 - build-sahara-images-dib
diff --git a/roles/build-sahara-images-dib/README.rst b/roles/build-sahara-images-dib/README.rst
new file mode 100644
index 0000000..b5d6c51
--- /dev/null
+++ b/roles/build-sahara-images-dib/README.rst
@@ -0,0 +1,13 @@
1Build Sahara Images with DIB
2
3**Role Variables**
4
5.. zuul:rolevar:: sahara_build_directory
6 :default: /var/tmp/sahara-image-build
7
8 The base directory used for the build process.
9
10.. zuul:rolevar:: sahara_plugin
11 :default: vanilla
12
13 The plugin whose images will be built.
diff --git a/roles/build-sahara-images-dib/defaults/main.yaml b/roles/build-sahara-images-dib/defaults/main.yaml
new file mode 100644
index 0000000..7d2fb47
--- /dev/null
+++ b/roles/build-sahara-images-dib/defaults/main.yaml
@@ -0,0 +1,3 @@
1---
2sahara_build_directory: /var/tmp/sahara-image-build
3sahara_plugin: vanilla
diff --git a/roles/build-sahara-images-dib/tasks/main.yaml b/roles/build-sahara-images-dib/tasks/main.yaml
new file mode 100644
index 0000000..95b57d5
--- /dev/null
+++ b/roles/build-sahara-images-dib/tasks/main.yaml
@@ -0,0 +1,4 @@
1- name: Build all the images for the selected plugin
2 command: ./tools/gate/build-images "{{ sahara_plugin }}"
3 args:
4 chdir: "{{ zuul.project.src_dir }}"