Skip to content
Snippets Groups Projects
Commit 923813ac authored by Michał Nasiadka's avatar Michał Nasiadka
Browse files

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
parent e8769373
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ copy_logs() { ...@@ -72,7 +72,7 @@ copy_logs() {
(docker info && docker images && docker ps -a) > ${LOG_DIR}/system_logs/docker-info.txt (docker info && docker images && docker ps -a) > ${LOG_DIR}/system_logs/docker-info.txt
for container in $(docker ps -a --format "{{.Names}}"); do 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 done
# Bifrost: grab config files and logs from the container. # Bifrost: grab config files and logs from the container.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment