--- # Copyright (c) 2019 Red Hat, Inc. # # This file is part of ARA Records Ansible. # # ARA Records Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ARA Records Ansible is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with ARA Records Ansible. If not, see . - name: Integration tests post-run hosts: all gather_facts: yes tasks: - name: Create server log directory file: path: "{{ ansible_user_dir }}/workspace/logs" state: directory recurse: yes - name: Recover integration test data command: cp -rp /tmp/ara-integration-tests/.ara/server {{ ansible_user_dir }}/workspace/logs/server - name: Upload log artifacts synchronize: src: "{{ ansible_user_dir }}/workspace/logs" dest: "{{ zuul.executor.log_root }}" mode: pull verify_host: true