From 68661ddc8db3b33d3f01fb647b5aa828d7007a69 Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Wed, 13 Jul 2022 23:16:27 +0800 Subject: [PATCH] [skip e2e]Fix script path for deploy test in jenkinsfile (#18254) Signed-off-by: zhuwenxing --- build/ci/jenkins/DeployTest.groovy | 12 ++++++------ build/ci/jenkins/DeployTestKafkaMQ.groovy | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/build/ci/jenkins/DeployTest.groovy b/build/ci/jenkins/DeployTest.groovy index bc3464dd8f..bdd324b05c 100644 --- a/build/ci/jenkins/DeployTest.groovy +++ b/build/ci/jenkins/DeployTest.groovy @@ -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}" } } } diff --git a/build/ci/jenkins/DeployTestKafkaMQ.groovy b/build/ci/jenkins/DeployTestKafkaMQ.groovy index 8eb7035f09..1b957cbc37 100644 --- a/build/ci/jenkins/DeployTestKafkaMQ.groovy +++ b/build/ci/jenkins/DeployTestKafkaMQ.groovy @@ -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}" } } }