Skip to content

Commit

Permalink
Set concurrent build limit for gradle check (#2274)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon authored Jun 28, 2022
1 parent 61920b1 commit aa6ca6e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion jenkins/gradle/gradle-check.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,16 @@ lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm))

pipeline {
options {
timeout(time: 2, unit: 'HOURS')
timeout(time: 2, unit: 'HOURS')
throttleJobProperty(
categories: [],
limitOneJobWithMatchingParams: false,
maxConcurrentPerNode: 0,
maxConcurrentTotal: 50,
paramsToUseForLimit: '',
throttleEnabled: true,
throttleOption: 'project',
)
}
// gradle check have a lot of issues running on containers
// Therefore, we directly run it on the agent node
Expand Down

0 comments on commit aa6ca6e

Please sign in to comment.