From 25ac724d55e7d028fb1a3f423da260628ac8bff6 Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Fri, 25 Mar 2022 14:35:25 +0800 Subject: [PATCH] [skip e2e]Add more check step in jenkins pipline (#16188) Signed-off-by: zhuwenxing --- build/ci/jenkins/ChaosTest.groovy | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/build/ci/jenkins/ChaosTest.groovy b/build/ci/jenkins/ChaosTest.groovy index c07de55013..1358134be9 100644 --- a/build/ci/jenkins/ChaosTest.groovy +++ b/build/ci/jenkins/ChaosTest.groovy @@ -227,9 +227,24 @@ pipeline { } } } - } - + } } + stage ('Verify all collections after chaos') { + options { + timeout(time: 10, unit: 'MINUTES') // timeout on this stage + } + steps { + container('main') { + dir ('tests/python_client/chaos') { + script { + def host = sh(returnStdout: true, script: "kubectl get svc/${env.RELEASE_NAME}-milvus -o jsonpath=\"{.spec.clusterIP}\"").trim() + sh "python3 scripts/verify_all_collections.py --host $host" + sh "kubectl get pods|grep ${env.RELEASE_NAME}" + } + } + } + } + } } post { always {