From 1dfd21c4b80dd1f0f6ac9ad02f336cdcc17d2eea Mon Sep 17 00:00:00 2001 From: vinamra28 Date: Sat, 16 Sep 2023 18:56:02 +0530 Subject: [PATCH] Add logger to identify the pod failure --- test/e2e-common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e-common.sh b/test/e2e-common.sh index 86b9cc50..99cb4537 100755 --- a/test/e2e-common.sh +++ b/test/e2e-common.sh @@ -202,6 +202,7 @@ function show_failure() { ${KUBECTL_CMD} get -n ${tns} taskrun -o yaml echo "--- Container Logs" for pod in $(${KUBECTL_CMD} get pod -o name -n ${tns}); do + echo "----POD_NAME: ${pod}---" ${KUBECTL_CMD} logs --all-containers -n ${tns} ${pod} || true done exit 1