Store kubectl events into events.json

7.20.x
Dmytro Nochevnov 2020-02-19 18:30:17 +02:00 committed by Radim Hopp
parent 33b377188f
commit 7c1a997eef
1 changed files with 2 additions and 1 deletions

View File

@ -339,7 +339,8 @@ pipeline {
cleanup {
sh """
mkdir -p $LOGS_AND_CONFIGS/kubectl
kubectl --namespace=che get events -o json > $LOGS_AND_CONFIGS/kubectl/events.txt || true
kubectl --namespace=che get events > $LOGS_AND_CONFIGS/kubectl/events.txt || true
kubectl --namespace=che get events -o json > $LOGS_AND_CONFIGS/kubectl/events.json || true
mkdir -p $LOGS_AND_CONFIGS/che-config