1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00

Add more *dump* information in case of failure 🦆

Output Tasks, Pipeline, PipelineRun and TaskRun.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
This commit is contained in:
Vincent Demeester 2020-03-10 15:05:16 +01:00 committed by tekton-robot
parent 8bb6a15942
commit 54b250dc32
2 changed files with 9 additions and 3 deletions

View File

@ -72,8 +72,14 @@ function show_failure() {
local testname=$1 tns=$2
echo "FAILED: ${testname} task has failed to comeback properly" ;
echo "--- TR Dump"
kubectl get -n ${tns} tr -o yaml
echo "--- Task Dump"
kubectl get -n ${tns} task -o yaml
echo "--- Pipeline Dump"
kubectl get -n ${tns} pipeline -o yaml
echo "--- PipelineRun Dump"
kubectl get -n ${tns} pipelinerun -o yaml
echo "--- TaskRun Dump"
kubectl get -n ${tns} taskrun -o yaml
echo "--- Container Logs"
kubectl get pod -o name -n ${tns}|xargs kubectl logs --all-containers -n ${tns}
exit 1

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Copyright 2019 The Tekton Authors
#