sensu-plugins / sensu-plugins-jenkins

This plugin provides native Jenkins instrumentation for monitoring and metrics collection, including: health, job status, metrics via `JQS`, and others.
http://sensu-plugins.io
MIT License
9 stars 18 forks source link

A job in progress/build is considered "healthy" #12

Closed dmsimard closed 7 years ago

dmsimard commented 8 years ago

If a job consistently fails, the plugin picks it up as faulty and the notifications go out. If this same job starts a build, I get a recovery because the status != 'failed' (it's in progress).

The plugin should be looking at the state of the last completed build, not the state of the last build because that last build might be in progress.