-
Bug
-
Resolution: Done
-
Critical
-
None
-
Windows 10 64
Jenkins 2.19.1
Hudson global-build-stats plugin 1.4
Java 1.8.0_121
Global Build Stats charts and Global Build Search don't show jobs of Pipeline type. Freestyle jobs work fine.
- is duplicated by
-
JENKINS-67260 global-build-stats does not read information from multibranch pipeline
-
- Closed
-
- links to
This is because GlobalBuildStatsRunListener extends RunListener<AbstractBuild>. Unfortunately, WorkflowRun extends Run directly, thus GlobalBuildStatsRunListener ignores pipeline jobs. So either the implementation of RunListener has to listen on all Run objects, or the project needs an additional listener which extends RunListener<WorkflowRun>.
Keep in mind, even if the implementation of the RunListener catches all objects inherited from Run (or WorkflowRun) it will only present statistics for the pipeline job itself (which runs on the master) and not the actual steps of the workflow.