From 151d8c5589bd946bd299e2696a1911b4e4270628 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Thu, 19 Oct 2017 14:41:10 +0000 Subject: [PATCH] Initial integrated zuulv3 jobs This runs gate-check-commit for the integrated repo. Change-Id: I09a36fe09b79d663cd21b05394318d86dfb91f45 --- zuul.d/jobs.yaml | 161 +++++++++++++++++++++++++++++++++++++++ zuul.d/playbooks/run.yml | 7 ++ zuul.d/project.yaml | 47 ++++++++++++ 3 files changed, 215 insertions(+) create mode 100644 zuul.d/jobs.yaml create mode 100644 zuul.d/playbooks/run.yml create mode 100644 zuul.d/project.yaml diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml new file mode 100644 index 0000000000..fcbe617fe0 --- /dev/null +++ b/zuul.d/jobs.yaml @@ -0,0 +1,161 @@ +--- +# 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 + branches: + - master + - stable/pike + - stable/ocata +- job: + name: openstack-ansible-deploy-ceph-ubuntu-xenial + parent: openstack-ansible-deploy-aio-ubuntu-xenial + vars: + action: deploy + scenario: ceph + branches: + - master + - stable/pike + - stable/ocata +- job: + name: openstack-ansible-upgrade-aio-ubuntu-xenial + parent: openstack-ansible-deploy-aio-ubuntu-xenial + timeout: 10800 + vars: + action: upgrade + scenario: aio + branches: + - master + - stable/pike + - stable/ocata +- job: + name: openstack-ansible-upgrade-ceph-ubuntu-xenial + parent: openstack-ansible-deploy-aio-ubuntu-xenial + timeout: 10800 + vars: + action: upgrade + scenario: ceph + branches: + - master + - stable/pike +- job: + name: openstack-ansible-deploy-octavia-ubuntu-xenial + parent: openstack-ansible-deploy-aio-ubuntu-xenial + vars: + action: deploy + scenario: octavia + branches: + - master +- job: + name: openstack-ansible-deploy-translations-ubuntu-xenial + parent: openstack-ansible-deploy-aio-ubuntu-xenial + vars: + action: deploy + scenario: translations + branches: + - master + +# centos +- job: + name: openstack-ansible-deploy-aio-centos-7 + parent: openstack-ansible-deploy-aio + nodeset: centos-7 + voting: false + branches: + - master + - stable/pike + - stable/ocata +- job: + name: openstack-ansible-deploy-ceph-centos-7 + parent: openstack-ansible-deploy-aio-centos-7 + vars: + action: deploy + scenario: ceph + branches: + - master + - stable/pike + - stable/ocata +- job: + name: openstack-ansible-upgrade-aio-centos-7 + parent: openstack-ansible-deploy-aio-centos-7 + timeout: 10800 + vars: + action: upgrade + scenario: aio + branches: + - master + - stable/pike +- job: + name: openstack-ansible-upgrade-ceph-centos-7 + parent: openstack-ansible-deploy-aio-centos-7 + timeout: 10800 + vars: + action: upgrade + scenario: ceph + branches: + - master + - stable/pike + +# opensuse +- job: + name: openstack-ansible-deploy-aio-opensuse-423 + parent: openstack-ansible-deploy-aio + nodeset: opensuse-423 + voting: false + branches: + - master + - stable/pike +- job: + name: openstack-ansible-deploy-ceph-opensuse-423 + parent: openstack-ansible-deploy-aio-opensuse-423 + branches: + - master + vars: + action: deploy + scenario: ceph +- job: + name: openstack-ansible-upgrade-aio-opensuse-423 + parent: openstack-ansible-deploy-aio-opensuse-423 + timeout: 10800 + branches: + - master + vars: + action: upgrade + scenario: aio \ No newline at end of file diff --git a/zuul.d/playbooks/run.yml b/zuul.d/playbooks/run.yml new file mode 100644 index 0000000000..f3863826ad --- /dev/null +++ b/zuul.d/playbooks/run.yml @@ -0,0 +1,7 @@ +- hosts: all + tasks: + - name: Run gate-check-commit.sh script + command: "sudo scripts/gate-check-commit.sh {{ scenario }} {{ action }}" + args: + chdir: "src/{{ zuul.project.canonical_name }}" + environment: '{{ zuul | zuul_legacy_vars }}' diff --git a/zuul.d/project.yaml b/zuul.d/project.yaml new file mode 100644 index 0000000000..0068c46423 --- /dev/null +++ b/zuul.d/project.yaml @@ -0,0 +1,47 @@ +--- +# 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 + experimental: + jobs: + - openstack-ansible-deploy-ceph-opensuse-423 + - openstack-ansible-deploy-octavia-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-deploy-translations-ubuntu-xenial + - openstack-ansible-upgrade-aio-centos-7 + - openstack-ansible-upgrade-aio-opensuse-423 + - openstack-ansible-upgrade-aio-ubuntu-xenial + - openstack-ansible-upgrade-ceph-centos-7 + - openstack-ansible-upgrade-ceph-ubuntu-xenial