Merge "system-config-roles: only match jobs on roles tested"
This commit is contained in:
commit
6f59af3638
14
roles-test/post.yaml
Normal file
14
roles-test/post.yaml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Make log directories for testing hosts
|
||||||
|
file:
|
||||||
|
path: "{{ zuul.executor.log_root }}/{{ item }}/logs"
|
||||||
|
state: directory
|
||||||
|
recurse: true
|
||||||
|
loop: "{{ query('inventory_hostnames', 'all') }}"
|
||||||
|
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- include_role:
|
||||||
|
name: stage-output
|
||||||
|
|
@ -10,8 +10,18 @@
|
|||||||
abstract: true
|
abstract: true
|
||||||
parent: base
|
parent: base
|
||||||
run: roles-test/base.yaml
|
run: roles-test/base.yaml
|
||||||
|
post-run: roles-test/post.yaml
|
||||||
files:
|
files:
|
||||||
- roles/
|
- roles/puppet-install
|
||||||
|
- roles/openafs-client
|
||||||
|
- roles/kerberos-client
|
||||||
|
vars:
|
||||||
|
zuul_copy_output: "{{ copy_output | combine(host_copy_output | default({})) }}"
|
||||||
|
stage_dir: "{{ ansible_user_dir }}/zuul-output"
|
||||||
|
copy_output:
|
||||||
|
'/var/log/syslog': logs_txt
|
||||||
|
'/var/log/messages': logs_txt
|
||||||
|
'/var/log/openafs': logs
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: system-config-zuul-role-integration-xenial
|
name: system-config-zuul-role-integration-xenial
|
||||||
|
Loading…
x
Reference in New Issue
Block a user