We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9177668 commit e605798Copy full SHA for e605798
operator/test/test.sh
@@ -89,7 +89,15 @@ setup_test() {
89
wait_for_pipeline() {
90
if ! kubectl wait --for=condition=succeeded "$1" -n "$2" --timeout 300s >"$DEBUG_OUTPUT"; then
91
echo "[ERROR] Pipeline failed to complete successful" >&2
92
- kubectl get pipelineruns "$1" -n "$2" >"$DEBUG_OUTPUT"
+ kubectl get "$1" -n "$2" >"$DEBUG_OUTPUT"
93
+ # just in case we are not running with debug on
94
+ echo "$DEBUG_OUTPUT"
95
+ prefix="pipelineruns/"
96
+ string_to_prune="$1"
97
+ tkn_param=${string_to_prune#"$prefix"}
98
+ tkn pr logs "$tkn_param" -n "$2" >> "$DEBUG_OUTPUT"
99
100
101
exit 1
102
fi
103
}
0 commit comments