Skip to content

Commit

Permalink
Add rerunIterations (#879)
Browse files Browse the repository at this point in the history
Signed-off-by: Shelley Lambert <slambert@gmail.com>
  • Loading branch information
smlambert authored Jan 9, 2024
1 parent 477eeed commit e910e9d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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') {
Expand Down

0 comments on commit e910e9d

Please sign in to comment.