Files
odo/.ibm/pipelines/kubernetes-docs-tests.sh
Philippe Martin cd9cc55c26 Send tests results to Sheet (#6873)
* Send tests results to Sheet

* Save tests from Windows tests + do not fail if junit file not found

* Change package name

* Remove cleanup old entries (keeping implementation)

* Add job number
2023-06-16 08:34:47 -04:00

25 lines
583 B
Bash
Executable File

#!/bin/bash
LOGFILE="pr-${GIT_PR_NUMBER}-kubernetes-docs-tests-${BUILD_NUMBER}"
TEST_NAME="Kubernetes Docs Tests"
source .ibm/pipelines/functions.sh
ibmcloud login --apikey "${API_KEY_QE}"
ibmcloud target -r "${IBM_REGION}"
ibmcloud ks cluster config --cluster "${IBM_KUBERNETES_ID}" --admin
cleanup_namespaces
(
set -e
make install
make test-doc-automation
) |& tee "/tmp/${LOGFILE}"
RESULT=${PIPESTATUS[0]}
save_logs "${LOGFILE}" "${TEST_NAME}" ${RESULT}
save_results "${PWD}/test-doc-automation.xml" "${LOGFILE}" "${TEST_NAME}" "${BUILD_NUMBER}"
exit ${RESULT}