[Selenium] Add devworkspace-che logs to test report (#828)

pull/835/head
Sergey Skorik 2021-05-17 16:35:22 +03:00 committed by GitHub
parent f5bbf11ae9
commit b46cba7667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,8 @@ function bumpPodsInfo() {
TARGET_DIR="${ARTIFACTS_DIR}/${NS}-info"
mkdir -p "$TARGET_DIR"
oc get pods -n ${NS}
for POD in $(oc get pods -o name -n ${NS}); do
for CONTAINER in $(oc get -n ${NS} ${POD} -o jsonpath="{.spec.containers[*].name}"); do
echo ""
@ -46,6 +48,7 @@ function bumpPodsInfo() {
function Catch_Finish() {
# grab devworkspace-controller namespace events after running e2e
bumpPodsInfo "devworkspace-controller"
bumpPodsInfo "devworkspace-che"
bumpPodsInfo "admin-che"
oc get devworkspaces -n "admin-che" -o=yaml > $ARTIFACTS_DIR/devworkspaces.yaml