Skip to content

Commit

Permalink
collect logs from all containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed Nov 16, 2023
1 parent cde5f51 commit 2ab152f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.build-image
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ pipeline {

void collectContainerLogs() {
sh '''#!/bin/bash
for container in $(docker container ls --format "{{.Names}}"); do docker logs $container >& ${container}-container.log; done
for container in $(docker container ls -a --format "{{.Names}}"); do docker logs $container >& ${container}-container.log; done
'''
}

Expand Down

0 comments on commit 2ab152f

Please sign in to comment.