Skip to content

Commit 45c7fc5

Browse files
committed
Add TCK build throttling
1 parent cc3b389 commit 45c7fc5

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ci/jpa-2.2-tck.Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ pipeline {
77
tools {
88
jdk 'OpenJDK 8 Latest'
99
}
10+
options {
11+
rateLimitBuilds(throttle: [count: 1, durationName: 'day', userBoost: true])
12+
buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3'))
13+
disableConcurrentBuilds(abortPrevious: true)
14+
}
1015
parameters {
1116
booleanParam(name: 'NO_SLEEP', defaultValue: true, description: 'Whether the NO_SLEEP patch should be applied to speed up the TCK execution')
1217
}

ci/jpa-3.0-tck.Jenkinsfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ pipeline {
77
tools {
88
jdk 'OpenJDK 8 Latest'
99
}
10+
options {
11+
rateLimitBuilds(throttle: [count: 1, durationName: 'day', userBoost: true])
12+
buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3'))
13+
disableConcurrentBuilds(abortPrevious: true)
14+
}
1015
parameters {
1116
choice(name: 'IMAGE_JDK', choices: ['jdk8', 'jdk11'], description: 'The JDK base image version to use for the TCK image.')
1217
string(name: 'TCK_VERSION', defaultValue: '3.0.0', description: 'The version of the Jakarta JPA TCK i.e. `2.2.0` or `3.0.1`')

0 commit comments

Comments
 (0)