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:
parent
8bb6a15942
commit
54b250dc32
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright 2019 The Tekton Authors
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user