• Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical 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.

          [JENKINS-43183] Can't see pipeline jobs in Global Build Stats

          Stefan Prietl added a comment -

          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.

          Stefan Prietl added a comment - 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.

          Peter Carenza added a comment -

          We're doing a KPI analysis on changes in builds over time and this is forcing us to record times manually.

          Peter Carenza added a comment - We're doing a KPI analysis on changes in builds over time and this is forcing us to record times manually.

          Igor Sarkisov added a comment -

          +1 to have global-build-stats-plugin support pipeline jobs.

          Igor Sarkisov added a comment - +1 to have global-build-stats-plugin support pipeline jobs.

          All my jobs are pipeline jobs except for the one DSL job generator.
          Global-build-stats plugin having ability to gather and plublish stats for pipeline job would be great.

          Karan Saldanha added a comment - All my jobs are pipeline jobs except for the one DSL job generator. Global-build-stats plugin having ability to gather and plublish stats for pipeline job would be great.

          I created a PR including changes from all other PRs to get a test build with them and seems to work fine - https://github.com/jenkinsci/global-build-stats-plugin/pull/17

          If you want to test it the link to the test build is here - https://ci.jenkins.io/job/Plugins/job/global-build-stats-plugin/job/PR-17/2/artifact/target/global-build-stats.hpi

          Is somebody maintaining this plugin? Can we get the PRs reviewed and potentially released? fcamblor macbeth

           

          Preslav Petkov added a comment - I created a PR including changes from all other PRs to get a test build with them and seems to work fine -  https://github.com/jenkinsci/global-build-stats-plugin/pull/17 If you want to test it the link to the test build is here - https://ci.jenkins.io/job/Plugins/job/global-build-stats-plugin/job/PR-17/2/artifact/target/global-build-stats.hpi Is somebody maintaining this plugin? Can we get the PRs reviewed and potentially released? fcamblor macbeth  

            victor_yousician Victor Balakine
            vlobachevsky Vital Lobachevskij
            Votes:
            19 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: