Native Zuul v3 jobs (almost all of them)

It defines buildimages/CLI jobs, and reuses the global pylint job
and few jobs from sahara-tests (scenario, tempest), mimicking
the existing definitions of the legacy jobs.

Still missing: grenade (there is no common grenade job yet at this
point).

Change-Id: Ibb57e216410afeef4d55d8ba2576aaacfa2f8c1a
This commit is contained in:
Luigi Toscano 2018-02-13 12:50:54 +01:00
parent 6861df5289
commit 6fc0f25c62
5 changed files with 71 additions and 0 deletions

44
.zuul.yaml Normal file
View File

@ -0,0 +1,44 @@
- project:
check:
jobs:
- openstack-tox-pylint:
voting: false
- sahara-tests-scenario
- sahara-tests-scenario-modwsgi:
voting: false
- sahara-tests-tempest
gate:
jobs:
- sahara-tests-scenario
- sahara-tests-tempest
experimental:
jobs:
- sahara-buildimages-ambari
- sahara-buildimages-cloudera
- sahara-buildimages-mapr
- sahara-tests-scenario-multinode-spark
- sahara-tests-scenario-py3
- job:
name: sahara-buildimages-base
nodeset: centos-7
run: playbooks/buildimages/run.yaml
timeout: 7200
- job:
name: sahara-buildimages-ambari
parent: sahara-buildimages-base
vars:
sahara_plugin: ambari
- job:
name: sahara-buildimages-cloudera
parent: sahara-buildimages-base
vars:
sahara_plugin: cloudera
- job:
name: sahara-buildimages-mapr
parent: sahara-buildimages-base
vars:
sahara_plugin: mapr

View File

@ -0,0 +1,6 @@
- hosts: all
roles:
- role: bindep
bindep_profile: test
bindep_dir: "{{ zuul.project.src_dir }}"
- build-sahara-images-cli

View File

@ -0,0 +1,13 @@
Build Sahara Images with CLI
**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,4 @@
---
sahara_src_dir: "{{ ansible_user_dir }}/{{ zuul.projects['git.openstack.org/openstack/sahara'].src_dir }}"
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: "{{ sahara_src_dir }}"