Skip to content

Commit

Permalink
DNM Add compressed version of all collected logs
Browse files Browse the repository at this point in the history
In the post job, there would be create a tar.gz. file that contains
all collected logs.
It might be helpful to download whole logs in faster way than
iterating on each files.
  • Loading branch information
danpawlik committed Aug 2, 2024
1 parent 8fb7bf8 commit 3df6578
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/playbooks/collect-logs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@
src: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/docs_build"
dest: "{{ ansible_user_dir }}/zuul-output/logs/docs_build"

- name: Create tar gz file
ansible.builtin.command: |
tar -caf {{ ansible_user_dir }}/all-logs.zst {{ ansible_user_dir }}/zuul-output/
mv {{ ansible_user_dir }}/all-logs.zst {{ ansible_user_dir }}/zuul-output/
chown "{{ ansible_user }}" {{ ansible_user_dir }}/zuul-output/all-logs.zst
always:
- name: Copy files from workspace on node
vars:
Expand Down

0 comments on commit 3df6578

Please sign in to comment.