CI: Fix symlinks to failed logs

Stop renaming files. Swift should be able to serve text/plain files
based on content, not extension.

Failed logs symlinks were broken because we stopped gzipping log
files and improperly rewrote the logic there.

Change-Id: Idddf51730821644948f51577807f5beaa18c6262
(cherry picked from commit 4a0182f15a)
(cherry picked from commit 067770667c)
This commit is contained in:
Radosław Piliszek 2020-01-15 10:54:18 +01:00 committed by Marcin Juszkiewicz
parent 5fc255680d
commit e1c0cb16e9
1 changed files with 0 additions and 13 deletions

View File

@ -55,19 +55,6 @@
# Parse build logs and extract pkg install info # Parse build logs and extract pkg install info
tests/files/process_build_logs.py -l logs/build -b {{ base_distro }} > logs/packages-info.txt tests/files/process_build_logs.py -l logs/build -b {{ base_distro }} > logs/packages-info.txt
# rename files to .txt; this is so that when displayed via
# logs.openstack.org clicking results in the browser shows the
# files, rather than trying to send it to another app or make you
# download it, etc.
# firstly, rename all .log files to .txt files
for f in $(find logs -name "*.log"); do
sudo mv $f ${f/.log/.txt}
done
# append .txt to all kolla config file
find logs/kolla_configs -type f -exec mv '{}' '{}'.txt \;
executable: /bin/bash executable: /bin/bash
chdir: "{{ zuul.project.src_dir }}" chdir: "{{ zuul.project.src_dir }}"