Initial integrated zuulv3 jobs

This runs gate-check-commit for the integrated repo

Change-Id: I8d90c3ea149ca356cea92e439e04c539ee6dd719
This commit is contained in:
Jean-Philippe Evrard 2017-10-27 14:36:00 +01:00 committed by Jean-Philippe Evrard
parent 6c7ee84a8a
commit 8aa1cc7c51
3 changed files with 154 additions and 0 deletions

101
zuul.d/jobs.yaml Normal file
View File

@ -0,0 +1,101 @@
---
# Copyright 2017, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- job:
name: openstack-ansible-deploy-aio
parent: base
description: |
Run functional tests for an OpenStack-Ansible project.
Uses the gate-check-commit.sh script, running a default
aio deploy.
run: zuul.d/playbooks/run
timeout: 7200
irrelevant-files:
- ^\.git.*
- ^.*\.(example|md|rst)$
- ^deploy-guide/.*
- ^doc/.*
- ^releasenotes/.*
- ^setup\.(cfg|py)$
- ^tox.ini$
- ^Vagrantfile
vars:
action: deploy
scenario: aio
# ubuntu
- job:
name: openstack-ansible-deploy-aio-ubuntu-xenial
parent: openstack-ansible-deploy-aio
nodeset: ubuntu-xenial
- job:
name: openstack-ansible-deploy-ceph-ubuntu-xenial
parent: openstack-ansible-deploy-aio-ubuntu-xenial
vars:
action: deploy
scenario: ceph
- job:
name: openstack-ansible-upgrade-aio-ubuntu-xenial
parent: openstack-ansible-deploy-aio-ubuntu-xenial
timeout: 10800
vars:
action: upgrade
scenario: aio
- job:
name: openstack-ansible-upgrade-ceph-ubuntu-xenial
parent: openstack-ansible-deploy-aio-ubuntu-xenial
timeout: 10800
vars:
action: upgrade
scenario: ceph
# centos
- job:
name: openstack-ansible-deploy-aio-centos-7
parent: openstack-ansible-deploy-aio
nodeset: centos-7
voting: false
- job:
name: openstack-ansible-deploy-ceph-centos-7
parent: openstack-ansible-deploy-aio-centos-7
vars:
action: deploy
scenario: ceph
- job:
name: openstack-ansible-upgrade-aio-centos-7
parent: openstack-ansible-deploy-aio-centos-7
timeout: 10800
vars:
action: upgrade
scenario: aio
- job:
name: openstack-ansible-upgrade-ceph-centos-7
parent: openstack-ansible-deploy-aio-centos-7
timeout: 10800
vars:
action: upgrade
scenario: ceph
# opensuse
- job:
name: openstack-ansible-deploy-aio-opensuse-423
parent: openstack-ansible-deploy-aio
nodeset: opensuse-423
voting: false

12
zuul.d/playbooks/run.yml Normal file
View File

@ -0,0 +1,12 @@
- hosts: all
tasks:
- name: Run gate-check-commit.sh script
become: yes
become_user: root
command: "scripts/gate-check-commit.sh {{ scenario }} {{ action }}"
args:
chdir: "src/{{ zuul.project.canonical_name }}"
environment:
# ZUUL_PROJECT is used by tests/get-ansible-role-requirements to
# determine when CI provided repos should be used.
ZUUL_PROJECT: "{{ zuul.project.short_name }}"

41
zuul.d/project.yaml Normal file
View File

@ -0,0 +1,41 @@
---
# Copyright 2017, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- project:
name: openstack/openstack-ansible
check:
jobs:
- openstack-ansible-linters
- openstack-ansible-deploy-aio-centos-7
- openstack-ansible-deploy-aio-opensuse-423
- openstack-ansible-deploy-aio-ubuntu-xenial
- openstack-ansible-deploy-ceph-centos-7
- openstack-ansible-deploy-ceph-ubuntu-xenial
gate:
jobs:
- openstack-ansible-linters
- openstack-ansible-deploy-aio-ubuntu-xenial
- openstack-ansible-deploy-ceph-ubuntu-xenial
periodic:
jobs:
- openstack-ansible-deploy-aio-centos-7
- openstack-ansible-deploy-aio-opensuse-423
- openstack-ansible-deploy-aio-ubuntu-xenial
- openstack-ansible-deploy-ceph-centos-7
- openstack-ansible-deploy-ceph-ubuntu-xenial
- openstack-ansible-upgrade-aio-centos-7
- openstack-ansible-upgrade-aio-ubuntu-xenial
- openstack-ansible-upgrade-ceph-centos-7
- openstack-ansible-upgrade-ceph-ubuntu-xenial