Merge "Remove redundant logs collection for non-ovb"

This commit is contained in:
Zuul 2019-02-25 18:08:30 +00:00 committed by Gerrit Code Review
commit db3c75b614

View File

@ -33,12 +33,13 @@
msg: "OVB job collect logs already run, not running collect_logs in post"
when: environment_type == "ovb" and undercloud_logs.stat.exists
- name: Run ansible playbook to collect logs for non-ovb jobs, or ovb jobs that weren't able to run collect logs
- name: Run ansible playbook to collect logs for ovb jobs that weren't able to run collect logs
shell: |
if [[ -e {{ ansible_user_dir }}/workspace/logs/collect_logs.sh ]]; then
bash {{ ansible_user_dir }}/workspace/logs/collect_logs.sh
mv {{ ansible_user_dir }}/workspace/logs/collect_logs.sh {{ ansible_user_dir }}/workspace/logs/ovb_collect_logs.sh
fi
when: environment_type != "ovb" or not undercloud_logs.stat.exists
when: environment_type == "ovb" and not undercloud_logs.stat.exists
- name: Check script existence
stat: