2d5026da09
Change-Id: Ia04126c39ab52816f0b89b89ae7a275d57011df1
35 lines
977 B
YAML
35 lines
977 B
YAML
- hosts: all
|
|
tasks:
|
|
- name: Copy files from {{ ansible_user_dir }}/ on node
|
|
synchronize:
|
|
src: '{{ ansible_user_dir }}/'
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|
|
copy_links: true
|
|
verify_host: true
|
|
rsync_opts:
|
|
- --include=/logs/**
|
|
- --include=*/
|
|
- --exclude=*
|
|
- --prune-empty-dirs
|
|
|
|
- name: Store bifrost log as a Zuul artifact
|
|
zuul_return:
|
|
data:
|
|
zuul:
|
|
artifacts:
|
|
- name: Bifrost log
|
|
url: 'logs/bifrost.log'
|
|
when: '"upgrade" not in zuul.job'
|
|
|
|
- name: Store bifrost upgrade log as a Zuul artifact
|
|
zuul_return:
|
|
data:
|
|
zuul:
|
|
artifacts:
|
|
- name: Bifrost log (before upgrade)
|
|
url: 'logs/bifrost-old.log'
|
|
- name: Bifrost log (after upgrade)
|
|
url: 'logs/bifrost-new.log'
|
|
when: '"upgrade" in zuul.job'
|