Collect logs in post-run

Change-Id: I202c86e941b4980959496ee05bd3df1707367c06
This commit is contained in:
Logan V 2018-09-13 15:46:37 -06:00
parent 14d65507a5
commit c2b9466dd0
1 changed files with 13 additions and 0 deletions

View File

@ -6,3 +6,16 @@
command: "shred -u {{ vault_key_path }}" command: "shred -u {{ vault_key_path }}"
args: args:
removes: "{{ vault_key_path }}" removes: "{{ vault_key_path }}"
- name: Run the log collection script
shell: |
source scripts/scripts-library.sh
gate_job_exit_tasks
become: yes
become_user: root
args:
chdir: "{{ lsn_ci_src_path }}/openstack-ansible"
executable: /bin/bash
environment:
GATE_EXIT_LOG_COPY: true
GATE_LOG_DIR: "{{ lsn_ci_src_path }}/logs"
GATE_EXIT_RUN_ARA: false