mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-29 18:38:44 +08:00
[skip e2e]Fix script path for deploy test in jenkinsfile (#18254)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
a47a414dce
commit
68661ddc8d
@ -215,16 +215,16 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
container('main') {
|
||||
dir ('tests/python_client/deploy/scripts') {
|
||||
dir ('tests/python_client/deploy') {
|
||||
script {
|
||||
def host = sh(returnStdout: true, script: "kubectl get svc/${env.RELEASE_NAME}-milvus -o jsonpath=\"{.spec.clusterIP}\"").trim()
|
||||
|
||||
if ("${params.deploy_task}" == "reinstall") {
|
||||
sh "python3 action_before_reinstall.py --host ${host} --data_size ${params.data_size}"
|
||||
sh "python3 scripts/action_before_reinstall.py --host ${host} --data_size ${params.data_size}"
|
||||
}
|
||||
|
||||
if ("${params.deploy_task}" == "upgrade") {
|
||||
sh "python3 action_before_upgrade.py --host ${host} --data_size ${params.data_size}"
|
||||
sh "python3 scripts/action_before_upgrade.py --host ${host} --data_size ${params.data_size}"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -329,16 +329,16 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
container('main') {
|
||||
dir ('tests/python_client/deploy/scripts') {
|
||||
dir ('tests/python_client/deploy') {
|
||||
script {
|
||||
sh "sleep 60s" // wait loading data for the second deployment to be ready
|
||||
def host = sh(returnStdout: true, script: "kubectl get svc/${env.RELEASE_NAME}-milvus -o jsonpath=\"{.spec.clusterIP}\"").trim()
|
||||
if ("${params.deploy_task}" == "reinstall") {
|
||||
sh "python3 action_after_reinstall.py --host ${host} --data_size ${params.data_size}"
|
||||
sh "python3 scripts/action_after_reinstall.py --host ${host} --data_size ${params.data_size}"
|
||||
}
|
||||
|
||||
if ("${params.deploy_task}" == "upgrade") {
|
||||
sh "python3 action_after_upgrade.py --host ${host} --data_size ${params.data_size}"
|
||||
sh "python3 scripts/action_after_upgrade.py --host ${host} --data_size ${params.data_size}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -216,16 +216,16 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
container('main') {
|
||||
dir ('tests/python_client/deploy/scripts') {
|
||||
dir ('tests/python_client/deploy') {
|
||||
script {
|
||||
def host = sh(returnStdout: true, script: "kubectl get svc/${env.RELEASE_NAME}-milvus -o jsonpath=\"{.spec.clusterIP}\"").trim()
|
||||
|
||||
if ("${params.deploy_task}" == "reinstall") {
|
||||
sh "python3 action_before_reinstall.py --host ${host} --data_size ${params.data_size}"
|
||||
sh "python3 scripts/action_before_reinstall.py --host ${host} --data_size ${params.data_size}"
|
||||
}
|
||||
|
||||
if ("${params.deploy_task}" == "upgrade") {
|
||||
sh "python3 action_before_upgrade.py --host ${host} --data_size ${params.data_size}"
|
||||
sh "python3 scripts/action_before_upgrade.py --host ${host} --data_size ${params.data_size}"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -331,16 +331,16 @@ pipeline {
|
||||
}
|
||||
steps {
|
||||
container('main') {
|
||||
dir ('tests/python_client/deploy/scripts') {
|
||||
dir ('tests/python_client/deploy') {
|
||||
script {
|
||||
sh "sleep 60s" // wait loading data for the second deployment to be ready
|
||||
def host = sh(returnStdout: true, script: "kubectl get svc/${env.RELEASE_NAME}-milvus -o jsonpath=\"{.spec.clusterIP}\"").trim()
|
||||
if ("${params.deploy_task}" == "reinstall") {
|
||||
sh "python3 action_after_reinstall.py --host ${host} --data_size ${params.data_size}"
|
||||
sh "python3 scripts/action_after_reinstall.py --host ${host} --data_size ${params.data_size}"
|
||||
}
|
||||
|
||||
if ("${params.deploy_task}" == "upgrade") {
|
||||
sh "python3 action_after_upgrade.py --host ${host} --data_size ${params.data_size}"
|
||||
sh "python3 scripts/action_after_upgrade.py --host ${host} --data_size ${params.data_size}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user