Skip to content

Commit

Permalink
enhance: add throttle for cpu-e2e and cpp-unit-test pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Yellow Shine <[email protected]>
  • Loading branch information
yellow-shine committed Nov 5, 2024
1 parent 5d720ce commit 29c534b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ci/jenkins/PR-for-go-sdk.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ pipeline {
preserveStashes(buildCount: 5)
disableConcurrentBuilds(abortPrevious: true)
timeout(time: 6, unit: 'HOURS')
throttleJobProperty(
categories: ['go-sdk'],
throttleEnabled: true,
throttleOption: 'category'

)
}
agent {
kubernetes {
Expand Down
6 changes: 6 additions & 0 deletions ci/jenkins/PR.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ pipeline {
preserveStashes(buildCount: 5)
disableConcurrentBuilds(abortPrevious: true)
timeout(time: 6, unit: 'HOURS')
throttleJobProperty(
categories: ['cpu-e2e'],
throttleEnabled: true,
throttleOption: 'category'

)
}
agent {
kubernetes {
Expand Down
6 changes: 6 additions & 0 deletions ci/jenkins/UT-CPP.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ pipeline {
preserveStashes(buildCount: 5)
disableConcurrentBuilds(abortPrevious: true)
timeout(time: 6, unit: 'HOURS')
throttleJobProperty(
categories: ['cpp-unit-test'],
throttleEnabled: true,
throttleOption: 'category'

)
}
agent {
kubernetes {
Expand Down

0 comments on commit 29c534b

Please sign in to comment.