mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-05 05:18:52 +08:00
7b6ff08466
Signed-off-by: zw <zw@zilliz.com>
34 lines
2.0 KiB
Groovy
34 lines
2.0 KiB
Groovy
timeout(time: 180, unit: 'MINUTES') {
|
|
dir ('milvus-helm') {
|
|
sh 'helm version'
|
|
sh 'helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts'
|
|
sh 'helm repo update'
|
|
checkout([$class: 'GitSCM', branches: [[name: "master"]], userRemoteConfigs: [[url: "https://github.com/milvus-io/milvus-helm.git", name: 'origin', refspec: "+refs/heads/master:refs/remotes/origin/master"]]])
|
|
retry(3) {
|
|
sh "helm install --wait --timeout 300s --set image.repository=registry.zilliz.com/milvus/engine --set image.tag=${DOCKER_VERSION} --set image.pullPolicy=Always --set service.type=ClusterIP -f ci/db_backend/mysql_${BINARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ${env.HELM_RELEASE_NAME} ."
|
|
}
|
|
}
|
|
|
|
dir ("tests/milvus_python_test") {
|
|
// sh 'python3 -m pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com'
|
|
sh 'python3 -m pip install -r requirements.txt'
|
|
sh "pytest . --alluredir=\"test_out/dev/single/mysql\" --ip ${env.HELM_RELEASE_NAME}.milvus.svc.cluster.local"
|
|
}
|
|
// sqlite database backend test
|
|
load "ci/jenkins/step/cleanupSingleDev.groovy"
|
|
|
|
if (!fileExists('milvus-helm')) {
|
|
dir ("milvus-helm") {
|
|
checkout([$class: 'GitSCM', branches: [[name: "master"]], userRemoteConfigs: [[url: "https://github.com/milvus-io/milvus-helm.git", name: 'origin', refspec: "+refs/heads/master:refs/remotes/origin/master"]]])
|
|
}
|
|
}
|
|
dir ("milvus-helm") {
|
|
retry(3) {
|
|
sh "helm install --wait --timeout 300s --set image.repository=registry.zilliz.com/milvus/engine --set image.tag=${DOCKER_VERSION} --set image.pullPolicy=Always --set service.type=ClusterIP -f ci/db_backend/sqlite_${BINARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ${env.HELM_RELEASE_NAME} ."
|
|
}
|
|
}
|
|
dir ("tests/milvus_python_test") {
|
|
sh "pytest . --alluredir=\"test_out/dev/single/sqlite\" --ip ${env.HELM_RELEASE_NAME}.milvus.svc.cluster.local"
|
|
}
|
|
}
|