Skip to content

Commit 6c1030f

Browse files
committed
kdevops_archive: add debug info about archive files
Github is not finding the zip file, so add debug info to see if we see it on the ansible output. Signed-off-by: Luis Chamberlain <[email protected]>
1 parent c9598c0 commit 6c1030f

File tree

1 file changed

+23
-0
lines changed
  • playbooks/roles/kdevops_archive/tasks

1 file changed

+23
-0
lines changed

playbooks/roles/kdevops_archive/tasks/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,29 @@
126126
format: zip
127127
remove: no
128128

129+
- name: Find archive files to verify
130+
find:
131+
paths: "{{ kdevops_results }}"
132+
patterns:
133+
- "*.zip"
134+
- "*.xz"
135+
register: archive_files
136+
137+
- name: Get archive file stat
138+
stat:
139+
path: "{{ item.path }}"
140+
register: archive_stats
141+
loop: "{{ archive_files.files }}"
142+
143+
- name: Display archive file information
144+
debug:
145+
msg: |
146+
Found archive file:
147+
Path: {{ item.stat.path }}
148+
Size: {{ (item.stat.size / 1024 / 1024) | round(2) }} MB
149+
Last modified: {{ item.stat.mtime | datetime }}
150+
loop: "{{ archive_stats.results }}"
151+
129152
- name: Check if kdevops-results-archive directory exists
130153
stat:
131154
path: "{{ kdevops_results_archive_dir }}"

0 commit comments

Comments
 (0)