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 {