What's Changed
Changes
Remove dependency on pipeline-rest-api / Pipeline Stage View (#855)
- The plugin no longer depends on
pipeline-stage-view(pipeline-rest-api,com.cloudbees.workflow.rest.external.*). It now usesworkflow-api,workflow-jobandworkflow-step-apidirectly. - Stage metrics (
stage_duration_milliseconds_summary,stage_result_ordinal) are now computed by the plugin itself from the flow graph. stage_result_ordinalvalues are unchanged. The order of the status enum is documented as part of the metric contract.- Interrupted stages now use the result of the
FlowInterruptedException(e.g.ABORTED,UNSTABLE). - Stages skipped by Declarative Pipeline (
when, earlier failure, restart) are reported asNOT_EXECUTEDwith duration 0. - Stages using
catchError,unstableorwarnErrorare reported according to their worst recorded result. - Stage IDs are now sorted numerically, so
10comes after9.
Fix deadlock in NbBuildsGauge and reduce log noise (#856)
- Fixes a deadlock on legacy Jenkins cores. The build count now uses an approximation based on
getNextBuildNumber(). - The warning about the missing CloudBees Disk Usage Simple plugin is now logged only once instead of on every scrape.
Upgrade notes
pipeline-stage-viewis no longer pulled in transitively. If you need the Stage View UI, install it separately.- Stage values can differ slightly from before in edge cases (skipped, aborted and unstable stages, nested or parallel stages). Please check dashboards and alerts based on
stage_result_ordinaland the stage summary after upgrading. - The build count in
NbBuildsGaugeis now an approximation and may include deleted or skipped build numbers.