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 0b9b4f4 commit c6fdadc
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 c6fdadc

Please sign in to comment.