Skip to content

Commit e4a2d3c

Browse files
authored
Increase keep builds number for certain jobs (#4594)
- Increase keep builds number for certain jobs Signed-off-by: LongyuZhang <[email protected]>
1 parent d4e8916 commit e4a2d3c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

buildenv/jenkins/testJobTemplate

+8-2
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ ARCH_OS_LIST.each { ARCH_OS ->
180180
ACTUAL_JCK_GIT_REPO = "${JCK_GIT_REPO_PREFIX}/JCK${JDK_VERSION}-unzipped.git"
181181
}
182182

183+
def BUILDS_TO_KEEP_MULTIPLIER = 1
184+
if (ACTUAL_TEST_JOB_NAME.contains('_imageUpload') || ACTUAL_TEST_JOB_NAME.contains('_imagePull')) {
185+
BUILDS_TO_KEEP_MULTIPLIER = 5
186+
}
187+
def ACTUAL_BUILDS_TO_KEEP = BUILDS_TO_KEEP * BUILDS_TO_KEEP_MULTIPLIER
188+
183189
def DOCKER_REQUIRED = false
184190
def DOCKERIMAGE_TAG = ""
185191
def EXTRA_DOCKER_ARGS = ""
@@ -470,8 +476,8 @@ ARCH_OS_LIST.each { ARCH_OS ->
470476
}
471477
}
472478
logRotator {
473-
numToKeep(BUILDS_TO_KEEP)
474-
artifactNumToKeep(BUILDS_TO_KEEP)
479+
numToKeep(ACTUAL_BUILDS_TO_KEEP)
480+
artifactNumToKeep(ACTUAL_BUILDS_TO_KEEP)
475481
daysToKeep(DAYS_TO_KEEP)
476482
artifactDaysToKeep(DAYS_TO_KEEP)
477483
}

0 commit comments

Comments
 (0)