Collect tobiko.conf file on CI jobs

Change-Id: I9a3e158d7fb3aff86e1430b550a49977d53e5b26
This commit is contained in:
Federico Ressi 2020-02-19 14:05:47 +01:00
parent 135de24450
commit 0f8e15e427
2 changed files with 16 additions and 0 deletions

View File

@ -23,5 +23,6 @@
- when: tobiko_post_run | bool
block:
- include: post/config.yaml
- include: post/report.yaml
- include: post/log.yaml

View File

@ -0,0 +1,15 @@
---
- name: check if {{ tobiko_conf_file }} file exists
stat:
path: "{{ tobiko_conf_file }}"
register: check_tobiko_conf_file
- name: "Collect {{ tobiko_conf_file }} file"
synchronize:
dest: "{{ collect_files_dir }}"
mode: pull
src: "{{ tobiko_conf_file }}"
verify_host: true
when: check_tobiko_conf_file.stat.exists