Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43183

Can't see pipeline jobs in Global Build Stats

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • None
    • Windows 10 64
      Jenkins 2.19.1
      Hudson global-build-stats plugin 1.4
      Java 1.8.0_121

    Description

      Global Build Stats charts and Global Build Search don't show jobs of Pipeline type. Freestyle jobs work fine.

      Attachments

        Activity

          seder 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.

          seder 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.
          pcarenza 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.

          pcarenza 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.
          isarkisov Igor Sarkisov added a comment -

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

          isarkisov 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.

          karansaldanha 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

           

          ppetkov 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  

          People

            dhinske David Krischke
            vlobachevsky Vital Lobachevskij
            Votes:
            19 Vote for this issue
            Watchers:
            22 Start watching this issue

            Dates

              Created:
              Updated: