Implement Xenial/CentOS jobs for OpenStack-Ansible

OpenStack-Ansible is targeting Ubuntu Xenial and CentOS support
for Newton. As such this patch intends to implement experimental
jobs for these two distributions for initial testing purposes.

The patch does the following:
 - Revises the OpenStack-Ansible job-template to be usable for
   more than one node type and to be able to execute voting
   and non-voting checks.
 - Uses the shell builder (instead of the 'ansible-check-commit'
   builder macro to execute the in-repo script which executes
   the gate check in the same way that a deployer would execute
   a production environment deployment.
 - Removes the 'ansible-check-commit' builder macro as it is no
   longer needed.
 - Implements the ability to execute experimental pipeline jobs
   for Ubuntu Xenial and CentOS-7.

Change-Id: I6dd2c0f5687d843d7273583d51d81acf47fb7ba4
This commit is contained in:
Jesse Pretorius 2016-06-15 12:56:39 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 6349831a3d
commit e301f0f702
4 changed files with 22 additions and 15 deletions

View File

@ -418,15 +418,6 @@
builders: builders:
- shell: sudo pip install "pip<8" "virtualenv<14" - shell: sudo pip install "pip<8" "virtualenv<14"
# note that this job uses an in-repo script for execution
# in order to cater for differing requirements per branch
- builder:
name: ansible-check-commit
builders:
- shell: |
#!/bin/bash -xe
sudo scripts/gate-check-commit.sh
- builder: - builder:
name: ansible-prep name: ansible-prep
builders: builders:

View File

@ -1,5 +1,5 @@
- job-template: - job-template:
name: 'gate-{name}-dsvm-commit' name: 'gate-{name}-openstack-ansible-{scenario}-{node}{job-suffix}'
node: '{node}' node: '{node}'
wrappers: wrappers:
@ -11,7 +11,10 @@
- print-template-name: - print-template-name:
template-name: "{template-name}" template-name: "{template-name}"
- gerrit-git-prep - gerrit-git-prep
- ansible-check-commit - shell: |
#!/bin/bash -xe
export SCENARIO="{scenario}"
sudo scripts/gate-check-commit.sh
publishers: publishers:
- devstack-logs - devstack-logs

View File

@ -5353,8 +5353,19 @@
- gate-{name}-requirements - gate-{name}-requirements
- openstack-publish-jobs - openstack-publish-jobs
- openstack-releasenotes-jobs - openstack-releasenotes-jobs
- 'gate-{name}-dsvm-commit': - 'gate-{name}-openstack-ansible-{scenario}-{node}{job-suffix}':
node: ubuntu-trusty job-suffix: ''
node:
- centos-7
- ubuntu-trusty
- ubuntu-xenial
scenario: aio
- 'gate-{name}-openstack-ansible-{scenario}-{node}{job-suffix}':
job-suffix: '-nv'
node:
- centos-7
- ubuntu-xenial
scenario: aio
- project: - project:
name: openstack-ansible-apt_package_pinning name: openstack-ansible-apt_package_pinning

View File

@ -9557,17 +9557,19 @@ projects:
- gate-openstack-ansible-docs-ubuntu-xenial - gate-openstack-ansible-docs-ubuntu-xenial
- gate-openstack-ansible-linters-ubuntu-trusty - gate-openstack-ansible-linters-ubuntu-trusty
- gate-openstack-ansible-linters-ubuntu-xenial - gate-openstack-ansible-linters-ubuntu-xenial
- gate-openstack-ansible-dsvm-commit - gate-openstack-ansible-openstack-ansible-aio-ubuntu-trusty
gate: gate:
- gate-openstack-ansible-docs-ubuntu-trusty - gate-openstack-ansible-docs-ubuntu-trusty
- gate-openstack-ansible-docs-ubuntu-xenial - gate-openstack-ansible-docs-ubuntu-xenial
- gate-openstack-ansible-linters-ubuntu-trusty - gate-openstack-ansible-linters-ubuntu-trusty
- gate-openstack-ansible-linters-ubuntu-xenial - gate-openstack-ansible-linters-ubuntu-xenial
- gate-openstack-ansible-dsvm-commit - gate-openstack-ansible-openstack-ansible-aio-ubuntu-trusty
experimental: experimental:
- gate-openstack-ansible-ansible-func-centos-7-nv - gate-openstack-ansible-ansible-func-centos-7-nv
- gate-openstack-ansible-ansible-func-ubuntu-trusty-nv - gate-openstack-ansible-ansible-func-ubuntu-trusty-nv
- gate-openstack-ansible-ansible-func-ubuntu-xenial-nv - gate-openstack-ansible-ansible-func-ubuntu-xenial-nv
- gate-openstack-ansible-openstack-ansible-aio-centos-7
- gate-openstack-ansible-openstack-ansible-aio-ubuntu-xenial
release: release:
- openstack-ansible-announce-release - openstack-ansible-announce-release