266d442257
Those logs can be found in the produced jobs' artifacts as well, no need to list those in the console logs. The lists are huge and bring no useful info. Change-Id: I9d832115febf76192de8c5d8f1225eba4217e888 Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
- name: Collect logs
|
|
hosts: primary
|
|
tasks:
|
|
|
|
- name: Run ansible playbook to collect logs
|
|
shell: |
|
|
if [[ -e {{ ansible_user_dir }}/workspace/logs/collect_logs.sh ]]; then
|
|
bash {{ ansible_user_dir }}/workspace/logs/collect_logs.sh
|
|
fi
|
|
|
|
- hosts:
|
|
- primary
|
|
- centos-7
|
|
tasks:
|
|
|
|
- name: Ensure artifacts directory exists
|
|
file:
|
|
path: '{{ zuul.executor.work_root }}/artifacts'
|
|
state: directory
|
|
delegate_to: localhost
|
|
|
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
|
no_log: true
|
|
synchronize:
|
|
src: '{{ ansible_user_dir }}/workspace/'
|
|
dest: '{{ zuul.executor.work_root }}/artifacts/images/'
|
|
mode: pull
|
|
copy_links: true
|
|
verify_host: true
|
|
rsync_opts:
|
|
- --include=/images/*
|
|
- --include=*/
|
|
- --exclude=*
|
|
- --prune-empty-dirs
|
|
|
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
|
no_log: true
|
|
synchronize:
|
|
src: '{{ ansible_user_dir }}/workspace/'
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|
|
copy_links: true
|
|
verify_host: true
|
|
rsync_opts:
|
|
- --include=/logs/**
|
|
- --include=*/
|
|
- --exclude=*
|
|
- --prune-empty-dirs
|