Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions ci-operator/step-registry/gather/extra/gather-extra-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -741,12 +741,20 @@ wait
mkdir -p ${ARTIFACT_DIR}/junit/

if openshift-tests e2e-analysis --help &>/dev/null; then
echo "Post e2e-analysis check for the cluster"
if [[ -f "${SHARED_DIR}/install-duration.log" ]]; then
echo "Found install-duration.log, it will be used for collecting install durations"
cat "${SHARED_DIR}/install-duration.log"
INSTALL_EXIT_CODE=0
if [[ -f "${SHARED_DIR}/install-status.txt" ]]; then
INSTALL_EXIT_CODE=$(tail -n1 "${SHARED_DIR}/install-status.txt" | awk '{print $1}')
fi
if [[ "$INSTALL_EXIT_CODE" == 0 ]]; then
echo "Post e2e-analysis check for the cluster"
if [[ -f "${SHARED_DIR}/install-duration.log" ]]; then
echo "Found install-duration.log, it will be used for collecting install durations"
cat "${SHARED_DIR}/install-duration.log"
fi
openshift-tests e2e-analysis --junit-dir "${ARTIFACT_DIR}/junit" || true
else
echo "Install failed, skipping post e2e-analysis check"
fi
openshift-tests e2e-analysis --junit-dir "${ARTIFACT_DIR}/junit" || true
else
# C2S/SC2S proxy can not access internet
if [[ "${CLUSTER_TYPE:-}" =~ ^aws-s?c2s$ ]]; then
Expand Down