From e910e9d618a42ea5783f5aa1170ecf1661b7f529 Mon Sep 17 00:00:00 2001 From: Shelley Lambert Date: Tue, 9 Jan 2024 07:46:45 -0500 Subject: [PATCH] Add rerunIterations (#879) Signed-off-by: Shelley Lambert --- pipelines/build/common/openjdk_build_pipeline.groovy | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pipelines/build/common/openjdk_build_pipeline.groovy b/pipelines/build/common/openjdk_build_pipeline.groovy index 5c8748d1c..9c320ac00 100644 --- a/pipelines/build/common/openjdk_build_pipeline.groovy +++ b/pipelines/build/common/openjdk_build_pipeline.groovy @@ -371,6 +371,10 @@ class Build { context.println "Running test: ${testType}" context.stage("${testType}") { def keep_test_reportdir = buildConfig.KEEP_TEST_REPORTDIR + def rerunIterations = '3' + if ("${testType}".contains('dev') || "${testType}".contains('external')) { + rerunIterations = '0' + } if (("${testType}".contains('openjdk')) || ("${testType}".contains('jck'))) { // Keep test reportdir always for JUnit targets keep_test_reportdir = true @@ -459,6 +463,7 @@ class Build { context.string(name: 'ADOPTOPENJDK_BRANCH', value: aqaBranch), context.string(name: 'ACTIVE_NODE_TIMEOUT', value: "${buildConfig.ACTIVE_NODE_TIMEOUT}"), context.booleanParam(name: 'DYNAMIC_COMPILE', value: DYNAMIC_COMPILE)], + context.string(name: 'RERUN_ITERATIONS', value: "${rerunIterations}"), wait: true currentBuild.result = testJob.getResult() context.node('worker') {