[skip e2e]Fix script path for deploy test in jenkinsfile (#18254)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2022-07-13 23:16:27 +08:00 committed by GitHub
parent a47a414dce
commit 68661ddc8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View File

@ -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}"
}
}
}

View File

@ -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}"
}
}
}