Skip to content

Commit

Permalink
add method to collect logs
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor committed Sep 26, 2023
1 parent bd01261 commit b66ca7a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .ci/openshift-ci/common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,14 @@ catchFinish() {
exit $RESULT
}

collectEclipseCheLogs() {
mkdir -p ${ARTIFACTS_DIR}/che-logs

# Collect all Eclipse Che logs and cluster CR
chectl server:logs -n $CHE_NAMESPACE --directory ${ARTIFACTS_DIR}/che-logs --telemetry off
oc get checluster -o yaml -n $CHE_NAMESPACE > "${ARTIFACTS_DIR}/che-cluster.yaml"
}

testClonePublicRepoNoPatOAuth() {
WS_NAME=$1
PROJECT_NAME=$2
Expand Down
2 changes: 1 addition & 1 deletion .ci/openshift-ci/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ trap "catchFinish" EXIT SIGINT
setupTestEnvironment "${OCP_NON_ADMIN_USER_NAME}"

testFactoryResolver "${PUBLIC_REPO_URL}"
testClonePublicRepoNoPatOAuth "${PUBLIC_REPO_WORKSPACE_NAME}" "${PUBLIC_PROJECT_NAME}" "${PUBLIC_REPO_URL} ${USER_CHE_NAMESPACE}"
testClonePublicRepoNoPatOAuth "${PUBLIC_REPO_WORKSPACE_NAME}" "${PUBLIC_PROJECT_NAME}" "${PUBLIC_REPO_URL}" "${USER_CHE_NAMESPACE}"

0 comments on commit b66ca7a

Please sign in to comment.