@@ -25,6 +25,8 @@ pipeline {
2525 }
2626 parameters {
2727 choice(name : ' LOG_LEVEL' , choices : [' INFO' , ' DEBUG' ], description : ' Log level to be used' )
28+ choice(name : ' QUERY_MAX_ATTEMPTS' , choices : [' 5' , ' 10' , ' 20' ], description : ' Number of attempts to create the connection to Elasticsearch' )
29+ choice(name : ' RETRY_TIMEOUT' , choices : [' 3' , ' 5' , ' 7' , ' 11' ], description : ' Number of seconds between retry' )
2830 string(name : ' STACK_VERSION' , defaultValue : ' 7.6.0' , description : ' SemVer version of the stack to be used.' )
2931 string(name : ' METRICBEAT_VERSION' , defaultValue : ' 7.6.0' , description : ' SemVer version of the metricbeat to be used.' )
3032 string(name : ' HELM_CHART_VERSION' , defaultValue : ' 7.6.1' , description : ' SemVer version of Helm chart to be used.' )
@@ -51,6 +53,8 @@ pipeline {
5153 KIND_VERSION = " ${ params.KIND_VERSION.trim()} "
5254 KUBERNETES_VERSION = " ${ params.KUBERNETES_VERSION.trim()} "
5355 LOG_LEVEL = " ${ params.LOG_LEVEL.trim()} "
56+ QUERY_MAX_ATTEMPTS = " ${ params.QUERY_MAX_ATTEMPTS.trim()} "
57+ RETRY_TIMEOUT = " ${ params.RETRY_TIMEOUT.trim()} "
5458 }
5559 stages {
5660 stage(' Checkout' ) {
@@ -183,6 +187,11 @@ def generateFunctionalTestStep(Map params = [:]){
183187 try {
184188 deleteDir()
185189 unstash ' build'
190+ retry(3 ){
191+ dir(" ${ BASE_DIR} " ){
192+ sh script : """ .ci/scripts/install-test-dependencies.sh "${ GO_VERSION} " """ , label : " Install test dependencies for ${ feature} "
193+ }
194+ }
186195 dir(" ${ BASE_DIR} " ){
187196 sh script : """ .ci/scripts/functional-test.sh "${ GO_VERSION} " "${ feature} " "${ STACK_VERSION} " "${ METRICBEAT_VERSION} " """ , label : " Run functional tests for ${ feature} "
188197 }
0 commit comments