2015-02-22 22:54:18 -05:00
|
|
|
- job-template:
|
|
|
|
name: 'gate-{name}-ansible-lint'
|
2017-04-22 19:45:37 +02:00
|
|
|
node: ubuntu-trusty
|
2015-02-22 22:54:18 -05:00
|
|
|
|
|
|
|
builders:
|
2017-04-03 19:36:51 +02:00
|
|
|
- zuul-git-prep
|
2016-03-10 07:34:58 +01:00
|
|
|
- install-distro-packages
|
2016-01-14 15:40:13 +00:00
|
|
|
- ansible-prep
|
2015-02-22 22:54:18 -05:00
|
|
|
- ansible-lint-prep
|
|
|
|
- revoke-sudo
|
|
|
|
- ansible-syntax
|
|
|
|
- ansible-lint
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- console-log
|
|
|
|
|
|
|
|
- job-group:
|
2015-11-17 17:34:32 -05:00
|
|
|
# TODO(pabelanger): Remove in favor of ansible-role-jobs
|
2015-02-22 22:54:18 -05:00
|
|
|
name: 'ansible-lint-jobs'
|
|
|
|
jobs:
|
|
|
|
- 'gate-{name}-ansible-lint'
|
2015-11-17 17:34:32 -05:00
|
|
|
|
2016-05-30 16:23:30 +02:00
|
|
|
- job-template:
|
2016-12-08 22:05:01 +01:00
|
|
|
name: '{pipeline}-{name}-dsvm-ansible-func-{ostype}{suffix}'
|
2016-05-30 16:23:30 +02:00
|
|
|
node: '{ostype}'
|
|
|
|
|
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
2016-07-19 10:49:21 +02:00
|
|
|
timeout: 100
|
2016-05-30 16:23:30 +02:00
|
|
|
- timestamps
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- print-template-name:
|
|
|
|
template-name: "{template-name}"
|
|
|
|
- zuul-git-prep
|
|
|
|
- devstack-checkout
|
|
|
|
- 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
|
|
|
|
- shell: |
|
|
|
|
#!/bin/bash -xe
|
|
|
|
export PYTHONUNBUFFERED=true
|
|
|
|
export DEVSTACK_GATE_NEUTRON=1
|
2016-07-18 18:57:08 +02:00
|
|
|
export PROJECTS="$ZUUL_PROJECT $PROJECTS"
|
2016-05-30 16:23:30 +02:00
|
|
|
|
|
|
|
export BRANCH_OVERRIDE={branch-override}
|
|
|
|
if [ "$BRANCH_OVERRIDE" != "default" ] ; then
|
|
|
|
export OVERRIDE_ZUUL_BRANCH=$BRANCH_OVERRIDE
|
|
|
|
fi
|
|
|
|
|
2016-07-18 09:58:20 +02:00
|
|
|
function post_test_hook {{
|
2016-07-18 13:49:40 +02:00
|
|
|
$BASE/new/{name}/tests/hooks/post_test_hook.sh
|
2016-07-18 09:58:20 +02:00
|
|
|
}}
|
|
|
|
export -f post_test_hook
|
|
|
|
|
2016-05-30 16:23:30 +02:00
|
|
|
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
|
|
|
./safe-devstack-vm-gate-wrap.sh
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- devstack-logs
|
|
|
|
- console-log
|
|
|
|
|
2016-03-01 14:18:05 -05:00
|
|
|
- job-template:
|
2016-12-08 22:05:01 +01:00
|
|
|
name: '{pipeline}-{name}-ansible-{scenario}-{ostype}{suffix}'
|
2016-03-01 14:18:05 -05:00
|
|
|
node: '{ostype}'
|
|
|
|
|
2016-04-15 19:06:26 +01:00
|
|
|
wrappers:
|
|
|
|
- build-timeout:
|
|
|
|
timeout: 60
|
|
|
|
- timestamps
|
|
|
|
|
2016-03-01 14:18:05 -05:00
|
|
|
builders:
|
|
|
|
- print-template-name:
|
|
|
|
template-name: "{template-name}"
|
2016-10-18 16:57:07 +01:00
|
|
|
- zuul-git-prep-upper-constraints
|
2017-04-13 11:08:57 -07:00
|
|
|
- shell: |
|
|
|
|
if [[ "{name}" == *"openstack-ansible"* ]]; then
|
2017-05-02 12:47:16 -04:00
|
|
|
# EPEL must be enabled because some deps from bindep.txt are
|
|
|
|
# otherwise not available
|
2017-05-03 10:34:03 +01:00
|
|
|
if [[ -e /usr/bin/yum ]]; then
|
|
|
|
sudo yum-config-manager --enable epel
|
|
|
|
fi
|
2017-04-13 11:08:57 -07:00
|
|
|
fi
|
2016-03-01 14:18:05 -05:00
|
|
|
- install-distro-packages
|
2017-05-02 12:47:16 -04:00
|
|
|
- shell: |
|
|
|
|
if [[ "{name}" == *"openstack-ansible"* ]]; then
|
2017-05-03 10:34:03 +01:00
|
|
|
if [[ -e /usr/bin/yum ]]; then
|
|
|
|
sudo yum-config-manager --disable epel
|
|
|
|
fi
|
2017-05-02 12:47:16 -04:00
|
|
|
fi
|
2016-03-01 14:18:05 -05:00
|
|
|
- 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
|
2016-07-08 19:46:48 +01:00
|
|
|
- shell: |
|
|
|
|
# Many of the Ansible roles have a tox environment
|
|
|
|
# called 'functional', so we implement a mapping
|
|
|
|
# of the scenario 'func' to 'functional' so reduce
|
|
|
|
# the need for code churn in those repositories
|
|
|
|
# immediately.
|
|
|
|
if [ "{scenario}" == "func" ]; then
|
|
|
|
/usr/local/jenkins/slave_scripts/run-tox.sh functional
|
|
|
|
else
|
|
|
|
/usr/local/jenkins/slave_scripts/run-tox.sh {scenario}
|
|
|
|
fi
|
2016-03-01 14:18:05 -05:00
|
|
|
|
|
|
|
publishers:
|
2016-07-29 15:47:47 +01:00
|
|
|
# Although these aren't devstack jobs, we want to capture logs
|
|
|
|
# similar in nature to devstack (Ansible logs, system logs, etc.)
|
|
|
|
- devstack-logs
|
2016-03-11 09:40:32 -08:00
|
|
|
- console-log
|
2016-03-01 14:18:05 -05:00
|
|
|
|
2015-11-17 17:34:32 -05:00
|
|
|
- job-group:
|
|
|
|
name: 'ansible-role-jobs'
|
2016-07-20 10:53:35 -07:00
|
|
|
node:
|
|
|
|
- ubuntu-trusty
|
|
|
|
- ubuntu-xenial
|
2015-11-17 17:34:32 -05:00
|
|
|
jobs:
|
2016-07-20 10:53:35 -07:00
|
|
|
- 'gate-{name}-docs-{node}'
|
2016-07-27 12:33:54 -04:00
|
|
|
- 'gate-{name}-linters-{node}'
|
2016-12-08 22:05:01 +01:00
|
|
|
- '{pipeline}-{name}-ansible-{scenario}-{ostype}{suffix}':
|
2016-03-01 14:18:05 -05:00
|
|
|
ostype:
|
2016-03-31 13:30:30 -04:00
|
|
|
- centos-7
|
2017-05-19 14:31:50 -05:00
|
|
|
- debian-jessie
|
2017-01-14 11:49:30 -05:00
|
|
|
- fedora-25
|
2016-03-01 14:18:05 -05:00
|
|
|
- ubuntu-trusty
|
2016-04-15 13:33:25 -04:00
|
|
|
- ubuntu-xenial
|
2016-03-01 14:18:05 -05:00
|
|
|
pipeline: gate
|
2016-07-08 19:46:48 +01:00
|
|
|
scenario: func
|
2016-12-08 22:05:01 +01:00
|
|
|
suffix:
|
2016-11-24 14:41:41 -05:00
|
|
|
- '-nv'
|
|
|
|
- ''
|
2016-05-20 14:02:54 +01:00
|
|
|
- '{name}-announce-release'
|
2016-05-30 16:23:30 +02:00
|
|
|
|
|
|
|
- job-group:
|
|
|
|
name: 'ansible-role-dsvm-jobs'
|
2016-07-20 10:53:35 -07:00
|
|
|
node:
|
|
|
|
- ubuntu-trusty
|
|
|
|
- ubuntu-xenial
|
2016-05-30 16:23:30 +02:00
|
|
|
jobs:
|
2016-07-20 10:53:35 -07:00
|
|
|
- 'gate-{name}-docs-{node}'
|
2016-07-27 12:33:54 -04:00
|
|
|
- 'gate-{name}-linters-{node}'
|
2016-12-08 22:05:01 +01:00
|
|
|
- '{pipeline}-{name}-dsvm-ansible-func-{ostype}{suffix}':
|
2016-05-31 17:03:10 +02:00
|
|
|
branch-override: default
|
2016-05-30 16:23:30 +02:00
|
|
|
ostype:
|
|
|
|
- centos-7
|
|
|
|
- ubuntu-trusty
|
|
|
|
- ubuntu-xenial
|
|
|
|
pipeline: gate
|
2016-12-08 22:05:01 +01:00
|
|
|
suffix:
|
2016-11-24 14:41:41 -05:00
|
|
|
- '-nv'
|
|
|
|
- ''
|
2016-05-30 16:23:30 +02:00
|
|
|
- '{name}-announce-release'
|
2017-03-31 18:29:12 +01:00
|
|
|
|
|
|
|
- job:
|
|
|
|
name: propose-openstack-ansible-update-osa-test-scripts
|
|
|
|
node: proposal
|
|
|
|
|
|
|
|
builders:
|
|
|
|
- proposal-slave-cleanup
|
|
|
|
- revoke-sudo
|
|
|
|
- link-logs
|
|
|
|
- net-info
|
|
|
|
- zuul-git-prep
|
|
|
|
- shell: /usr/local/jenkins/slave_scripts/propose_update.sh openstack-ansible-tests
|
|
|
|
|
|
|
|
publishers:
|
|
|
|
- console-log
|