From e3807b97c12e55a9598cfa49bc2fac428e29f4ce Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Fri, 1 Jul 2022 17:30:19 +0800 Subject: [PATCH] [skip e2e]Add wait time after chaos (#17999) Signed-off-by: zhuwenxing --- build/ci/jenkins/ChaosTest.groovy | 20 +++++++++++++++++++- build/ci/jenkins/ChaosTestKafkaMQ.groovy | 20 +++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/build/ci/jenkins/ChaosTest.groovy b/build/ci/jenkins/ChaosTest.groovy index 6359f04739..2bf59bd545 100644 --- a/build/ci/jenkins/ChaosTest.groovy +++ b/build/ci/jenkins/ChaosTest.groovy @@ -41,6 +41,11 @@ pipeline { name: 'image_tag', defaultValue: 'master-latest' ) + string( + description: 'Wait Time after chaos test', + name: 'idel_time', + defaultValue: '1' + ) string( description: 'Etcd Image Repository', name: 'etcd_image_repository', @@ -237,8 +242,21 @@ pipeline { } } } - } + } + stage ('Milvus Idle Time') { + steps { + container('main') { + dir ('tests/python_client/chaos') { + script { + echo "sleep ${params.idel_time}m" + sh "sleep ${params.idel_time}m" + } + } + } + } + } + stage ('run e2e test after chaos') { options { timeout(time: 5, unit: 'MINUTES') // timeout on this stage diff --git a/build/ci/jenkins/ChaosTestKafkaMQ.groovy b/build/ci/jenkins/ChaosTestKafkaMQ.groovy index 2e902f0ec2..ecd47bcadd 100644 --- a/build/ci/jenkins/ChaosTestKafkaMQ.groovy +++ b/build/ci/jenkins/ChaosTestKafkaMQ.groovy @@ -41,6 +41,11 @@ pipeline { name: 'image_tag', defaultValue: 'master-latest' ) + string( + description: 'Wait Time after chaos test', + name: 'idel_time', + defaultValue: '1' + ) string( description: 'Etcd Image Repository', name: 'etcd_image_repository', @@ -239,7 +244,20 @@ pipeline { } } } - } + } + stage ('Milvus Idle Time') { + + steps { + container('main') { + dir ('tests/python_client/chaos') { + script { + echo "sleep ${params.idel_time}m" + sh "sleep ${params.idel_time}m" + } + } + } + } + } stage ('run e2e test after chaos') { options {