Skip to content

Commit

Permalink
Add timeout and throttle to the jenkins workflows (#231)
Browse files Browse the repository at this point in the history
* Add timeout and throttle to the jenkins workflows

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

* Add changelog

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>

Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon authored Oct 25, 2022
1 parent 1ac790a commit 9865478
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Update literature around changelog contributions in CONTRIBUTING.md ([#242](https://github.com/opensearch-project/opensearch-java/pull/242))
- Update tests to use JUnit's Assert ([#244](https://github.com/opensearch-project/opensearch-java/pull/244))
- Add support to parse sub-aggregations from filter/nested aggregations ([#234](https://github.com/opensearch-project/opensearch-java/pull/234))
- Add timeout and throttle to the jenkins workflows ([#231](https://github.com/opensearch-project/opensearch-java/pull/231))

### Deprecated

Expand All @@ -23,4 +24,4 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Security


[Unreleased]: https://github.com/opensearch-project/opensearch-java/compare/2.0...HEAD
[Unreleased]: https://github.com/opensearch-project/opensearch-java/compare/2.0...HEAD
12 changes: 12 additions & 0 deletions jenkins/publish-snapshot.jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
pipeline {
options {
timeout(time: 30, unit: 'MINUTES')
throttleJobProperty(
categories: [],
limitOneJobWithMatchingParams: false,
maxConcurrentPerNode: 0,
maxConcurrentTotal: 1,
paramsToUseForLimit: '',
throttleEnabled: true,
throttleOption: 'project',
)
}
agent {
docker {
label 'Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host'
Expand Down
12 changes: 12 additions & 0 deletions jenkins/stage-maven-release.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ lib = library(identifier: 'jenkins@main', retriever: modernSCM([
]))

pipeline {
options {
timeout(time: 30, unit: 'MINUTES')
throttleJobProperty(
categories: [],
limitOneJobWithMatchingParams: false,
maxConcurrentPerNode: 0,
maxConcurrentTotal: 1,
paramsToUseForLimit: '',
throttleEnabled: true,
throttleOption: 'project',
)
}
agent {
docker {
label 'Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host'
Expand Down

0 comments on commit 9865478

Please sign in to comment.