diff --git a/.ibm/pipelines/kubernetes-tests.sh b/.ibm/pipelines/kubernetes-tests.sh index 8dca26533..7072489a7 100644 --- a/.ibm/pipelines/kubernetes-tests.sh +++ b/.ibm/pipelines/kubernetes-tests.sh @@ -4,7 +4,8 @@ LOGFILE="pr-${GIT_PR_NUMBER}-kubernetes-tests-${BUILD_NUMBER}" source .ibm/pipelines/functions.sh -ibmcloud login --apikey "${API_KEY}" -r "${IBM_REGION}" +ibmcloud login --apikey "${API_KEY}" +ibmcloud target -r "${IBM_REGION}" ibmcloud ks cluster config --cluster "${IBM_KUBERNETES_ID}" --admin cleanup_namespaces diff --git a/.ibm/pipelines/openshift-tests.sh b/.ibm/pipelines/openshift-tests.sh index 1a027f5c1..ff4e84755 100644 --- a/.ibm/pipelines/openshift-tests.sh +++ b/.ibm/pipelines/openshift-tests.sh @@ -19,7 +19,8 @@ cleanup_namespaces ) |& tee "/tmp/${LOGFILE}" RESULT=${PIPESTATUS[0]} -ibmcloud login --apikey "${API_KEY}" -r "${IBM_REGION}" +ibmcloud login --apikey "${API_KEY}" +ibmcloud target -r "${IBM_REGION}" save_logs "${LOGFILE}" "OpenShift Tests" ${RESULT} exit ${RESULT}