e1e06136f0
This should be a no-op for single-node jobs, but for multi-node jobs it should keep them from trying to copy logs from all of their nodes, which they are not designed to do. Change-Id: Ibcf158f1b8082fbffeb48fa48c6592c87e056d01
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
- hosts: primary
|
|
tasks:
|
|
|
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
|
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
|
|
|
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
|
synchronize:
|
|
src: '{{ ansible_user_dir }}/workspace/'
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|
|
copy_links: true
|
|
verify_host: true
|
|
rsync_opts:
|
|
- --include=/rally-plot/**
|
|
- --include=*/
|
|
- --exclude=*
|
|
- --prune-empty-dirs
|
|
|
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
|
synchronize:
|
|
src: '{{ ansible_user_dir }}/workspace/'
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|
|
copy_links: true
|
|
verify_host: true
|
|
rsync_opts:
|
|
- --include=/rally-plot/extra/index.html
|
|
- --include=*/
|
|
- --exclude=*
|
|
- --prune-empty-dirs
|