Skip to content

Commit

Permalink
[CSB] Store TNB framework pod logs (#49629)
Browse files Browse the repository at this point in the history
  • Loading branch information
smongiar committed Mar 12, 2024
1 parent 4347724 commit 42f3c67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion OWNERS_ALIASES
Expand Up @@ -367,7 +367,6 @@ aliases:
- smongiar
- mcarlett
- croway
- petrpinkas
- jvrubel
microshift-reviewers:
- copejon
Expand Down
Expand Up @@ -718,6 +718,13 @@ function restartPodAfterFailure() {
echo "TNB pod restarted."
}

function copy_deploy_pod_logs() {
TNB_POD=$(oc get pods -n csb-interop -l deployment=tnb --no-headers=true | awk '{print $1}')
echo "get logs from pod ${TNB_POD}"
mkdir -p "${ARTIFACT_DIR}"/tnb
oc logs --tail=5000 "$TNB_POD" -n csb-interop > "${ARTIFACT_DIR}"/tnb/deploy-and-compile.log
}

echo "Create project"
create_csb_project_and_policies csb-interop

Expand All @@ -738,3 +745,6 @@ oc import-image tnb-tests:latest --from=quay.io/rh_integration/tnb-tests:latest

echo "Compile TNB project through Pod creation"
create_dc_and_tnb_framework_pod

echo "Copy TNB Pod logs"
copy_deploy_pod_logs

0 comments on commit 42f3c67

Please sign in to comment.