This plugin provides native Jenkins instrumentation for monitoring and metrics collection, including: health, job status, metrics via `JQS`, and others.
When a health check fails a status code of 500 is returned. To get a
meaningful error message, the JSON response needs to be parsed also for
status code 500.
Parse health check JSON response in error case
When a health check fails a status code of 500 is returned. To get a meaningful error message, the JSON response needs to be parsed also for status code 500.
before the fix plugin return
after the fix plugin return