CI: Fix get_logs.sh docker logs output
Currently the logs get printed in Zuul job stdout and only a small portion of them is redirected to a file - this patch changes that to send all output to desired files. Change-Id: I45e937ec7c102e89edee20679b8959bf7f6c7152
This commit is contained in:
parent
e8769373b6
commit
923813ac48
@ -72,7 +72,7 @@ copy_logs() {
|
||||
(docker info && docker images && docker ps -a) > ${LOG_DIR}/system_logs/docker-info.txt
|
||||
|
||||
for container in $(docker ps -a --format "{{.Names}}"); do
|
||||
docker logs --tail all ${container} > ${LOG_DIR}/docker_logs/${container}.txt
|
||||
docker logs --tail all ${container} &> ${LOG_DIR}/docker_logs/${container}.txt
|
||||
done
|
||||
|
||||
# Bifrost: grab config files and logs from the container.
|
||||
|
Loading…
Reference in New Issue
Block a user