diff --git a/ci/jenkins/Nightly.groovy b/ci/jenkins/Nightly.groovy index 72fc061e25..1aeb34f2c1 100644 --- a/ci/jenkins/Nightly.groovy +++ b/ci/jenkins/Nightly.groovy @@ -44,6 +44,8 @@ pipeline { HUB = "harbor.milvus.io/milvus" JENKINS_BUILD_ID = "${env.BUILD_ID}" CI_MODE="nightly" + + SHOW_MILVUS_CONFIGMAP= true } stages { diff --git a/ci/jenkins/PR.groovy b/ci/jenkins/PR.groovy index a79a789080..1da256c008 100644 --- a/ci/jenkins/PR.groovy +++ b/ci/jenkins/PR.groovy @@ -34,6 +34,7 @@ pipeline { HUB = 'harbor.milvus.io/milvus' JENKINS_BUILD_ID = "${env.BUILD_ID}" CI_MODE="pr" + SHOW_MILVUS_CONFIGMAP= true } stages { diff --git a/tests/scripts/install_milvus.sh b/tests/scripts/install_milvus.sh index 6f3f68cbfe..a6c9e83474 100755 --- a/tests/scripts/install_milvus.sh +++ b/tests/scripts/install_milvus.sh @@ -100,8 +100,8 @@ restart_pods=$(kubectl get pods -n ${MILVUS_HELM_NAMESPACE} | grep "${MILVUS_HEL for restart_pod in ${restart_pods} do - reason=$(kubectl get pod ${restart_pod} -n milvus-ci -o json | jq .status.containerStatuses[0].lastState.terminated.reason ) - restart_count=$(kubectl get pod ${restart_pod} -n milvus-ci -o json | jq .status.containerStatuses[0].restartCount ) + reason=$(kubectl get pod ${restart_pod} -n ${MILVUS_HELM_NAMESPACE} -o json | jq .status.containerStatuses[0].lastState.terminated.reason ) + restart_count=$(kubectl get pod ${restart_pod} -n ${MILVUS_HELM_NAMESPACE} -o json | jq .status.containerStatuses[0].restartCount ) echo "${restart_pod} restarts ${restart_count}, last terminateed reason is ${reason}" done @@ -115,4 +115,9 @@ if [[ ${exitcode} -ne 0 ]];then fi kubectl get pvc -n ${MILVUS_HELM_NAMESPACE} | grep "${MILVUS_HELM_RELEASE_NAME}-" | awk '{$3=null;print $0}' +if [[ -n ${SHOW_MILVUS_CONFIGMAP} ]]; then + echo "-----------------milvus config --------------------" + kubectl get configmap ${MILVUS_HELM_RELEASE_NAME}-milvus -n ${MILVUS_HELM_NAMESPACE} -o jsonpath="{$.data}" + +fi exit ${exitcode}