1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-24 06:15:46 +00:00

Add logger to identify the pod failure

This commit is contained in:
vinamra28 2023-09-16 18:56:02 +05:30 committed by tekton-robot
parent 41711fff40
commit 1dfd21c4b8

View File

@ -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