From 3c9870c508333a83ff761d77fdb0feaad599785e Mon Sep 17 00:00:00 2001 From: Rodolfo Napoles Date: Tue, 8 Feb 2022 08:50:18 -0500 Subject: [PATCH] minor changes to use service IDs and clusters in the Developer QE account (#5440) * minor changes to use clusters in the Developer QE account * removed unnecessary command --- .ibm/pipelines/kubernetes-tests.sh | 3 ++- .ibm/pipelines/openshift-tests.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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}