project-config/jenkins/jobs/openstack-ansible-jobs.yaml
Jesse Pretorius e301f0f702 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
2016-08-02 11:09:30 +00:00

22 lines
482 B
YAML

- job-template:
name: 'gate-{name}-openstack-ansible-{scenario}-{node}{job-suffix}'
node: '{node}'
wrappers:
- build-timeout:
timeout: 90
- timestamps
builders:
- print-template-name:
template-name: "{template-name}"
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
export SCENARIO="{scenario}"
sudo scripts/gate-check-commit.sh
publishers:
- devstack-logs
- console-log