project-config/jenkins/jobs/ansible-role-jobs.yaml
Paul Belanger 53e3b08a8a Switch to ansible-func-ubuntu-trusty for ansible jobs
Here we are switching to ubuntu-trusty as our base image, this will
allow us to retire the bare-trusty node.

Change-Id: I80648a9176d6adb759dffb7545ec0cd100d2d60b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-03-04 09:19:31 -05:00

88 lines
2.3 KiB
YAML

- job-template:
name: 'gate-{name}-ansible-lint'
node: '{node}'
builders:
- ansible-prep
- ansible-lint-prep
- revoke-sudo
- gerrit-git-prep
- ansible-syntax
- ansible-lint
publishers:
- console-log
- job-template:
name: '{pipeline}-{name}-dsvm-ansible-functional-{ostype}{job-suffix}'
node: 'devstack-{ostype}'
builders:
- print-template-name:
template-name: "{template-name}"
- zuul-git-prep
- shell: |
# Allow Jenkins user to ssh into localhost
ssh-keygen -f ~/.ssh/id_rsa -N ""
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh-keyscan localhost >> ~/.ssh/known_hosts
ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts
- tox:
envlist: functional
publishers:
- zuul-swift-upload-console-log
- job-group:
# TODO(pabelanger): Remove in favor of ansible-role-jobs
name: 'ansible-lint-jobs'
jobs:
- 'gate-{name}-ansible-lint'
- job-template:
name: '{pipeline}-{name}-ansible-func-{ostype}{job-suffix}'
node: '{ostype}'
builders:
- print-template-name:
template-name: "{template-name}"
- zuul-git-prep
- install-distro-packages
- shell: |
# Allow Jenkins user to ssh into localhost
ssh-keygen -f ~/.ssh/id_rsa -N ""
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh-keyscan localhost >> ~/.ssh/known_hosts
ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts
- tox:
envlist: functional
publishers:
- zuul-swift-upload-console-log
- job-group:
name: 'ansible-role-jobs'
jobs:
- 'gate-{name}-docs'
- 'gate-{name}-linters'
- '{pipeline}-{name}-dsvm-ansible-functional-{ostype}{job-suffix}':
job-suffix: '-nv'
ostype:
- centos7
pipeline: gate
- '{pipeline}-{name}-dsvm-ansible-functional-{ostype}{job-suffix}':
job-suffix: ''
ostype:
- centos7
pipeline: gate
- '{pipeline}-{name}-ansible-func-{ostype}{job-suffix}':
job-suffix: '-nv'
ostype:
- ubuntu-trusty
pipeline: gate
- '{pipeline}-{name}-ansible-func-{ostype}{job-suffix}':
job-suffix: ''
ostype:
- ubuntu-trusty
pipeline: gate