Closed CoRfr closed 6 years ago
Sample result:
Passed:
$ check-jenkins-build-time.rb -u 'http://jenkins-cnt:8080/' --jobs 'Legato-Review=1h' --check-build-duration
JenkinsBuildTime OK: 1 job(s) had successful builds within allowed times
Failed:
$ check-jenkins-build-time.rb -u 'http://jenkins-cnt:8080/' --jobs 'Legato-Review=30m' --check-build-duration
JenkinsBuildTime CRITICAL: 1 failure(s): Legato-Review: last built at 2018-05-10 01:47:18 +0000 (33 mins 41 secs) exceeded max duration = 30m
This adds a mode so that check-jenkins-build-time can check the build duration instead of when a build last occured.
The goal is to monitor the performance of some jobs.
Signed-off-by: Bertrand Roussel broussel@sierrawireless.com
Pull Request Checklist
Is this in reference to an existing issue?
General
[x] Update Changelog following the conventions laid out on Our CHANGELOG Guidelines
[x] Update README with any necessary configuration snippets
[x] Binstubs are created if needed
[x] RuboCop passes
[x] Existing tests pass
New Plugins
[ ] Tests
[ ] Add the plugin to the README
[ ] Does it have a complete header as outlined here
Purpose
Known Compatibility Issues