Skip to content

Commit

Permalink
Add TCK build throttling
Browse files Browse the repository at this point in the history
  • Loading branch information
beikov committed Dec 20, 2022
1 parent cc3b389 commit 45c7fc5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ci/jpa-2.2-tck.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ pipeline {
tools {
jdk 'OpenJDK 8 Latest'
}
options {
rateLimitBuilds(throttle: [count: 1, durationName: 'day', userBoost: true])
buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3'))
disableConcurrentBuilds(abortPrevious: true)
}
parameters {
booleanParam(name: 'NO_SLEEP', defaultValue: true, description: 'Whether the NO_SLEEP patch should be applied to speed up the TCK execution')
}
Expand Down
5 changes: 5 additions & 0 deletions ci/jpa-3.0-tck.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ pipeline {
tools {
jdk 'OpenJDK 8 Latest'
}
options {
rateLimitBuilds(throttle: [count: 1, durationName: 'day', userBoost: true])
buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3'))
disableConcurrentBuilds(abortPrevious: true)
}
parameters {
choice(name: 'IMAGE_JDK', choices: ['jdk8', 'jdk11'], description: 'The JDK base image version to use for the TCK image.')
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`')
Expand Down

0 comments on commit 45c7fc5

Please sign in to comment.