Files
odo/.ibm/pipelines/kubernetes-tests.sh
Anand Kumar Singh 575d9ce7d6 Fix windows script to use correct API KEY (#5512)
* fix windows script to use correct API KEY

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* remove github login

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* k8s updated qe key

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* use serviceid API key

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update save_log func

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* make script executable

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-03-07 05:02:48 -05:00

26 lines
551 B
Bash
Executable File

#!/bin/bash
LOGFILE="pr-${GIT_PR_NUMBER}-kubernetes-tests-${BUILD_NUMBER}"
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-integration-devfile
make test-integration-interactive
make test-e2e-devfile
make test-cmd-project
) |& tee "/tmp/${LOGFILE}"
RESULT=${PIPESTATUS[0]}
save_logs "${LOGFILE}" "Kubernetes Tests" ${RESULT}
exit ${RESULT}