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:
parent
41711fff40
commit
1dfd21c4b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user