• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • None
    • Jenkins:2.121.1
      global-build-stats-plugin:1.5

      After clicking on a chart details and then in the Search Results, none of the links to the job, Build # (log) or the date (again to the build log) are constructed correctly when jobs are inside folders.

      The links are constructed as:

      JOB: ${JENKINS_URL}/job/topFolder/subFolder/jobName/
      BUILD: ${JENKINS_URL}/job/topFolder/subFolder/jobName/1234

      The correct construction should be;
      JOB: ${JENKINS_URL}/job/topFolder/job/subFolder/job/jobName/
      BUILD: ${JENKINS_URL}/job/topFolder/job/subFolder/job/jobName/1234

      Must manually adjust url after the fact.

      Should display .getFullName() but use .getUrl() in url construction.

          [JENKINS-60138] Link to job not correct for jobs in folders

          Naveen chandra sekhara added a comment - - edited

          Global build stats is very useful especially having lots of views and folders. Can someone fix this please. We really need this to work as we have multiple views and lots of folders.

          Can someone suggest any other plugin similar to this if no one is fixing it.

          Naveen chandra sekhara added a comment - - edited Global build stats is very useful especially having lots of views and folders. Can someone fix this please. We really need this to work as we have multiple views and lots of folders. Can someone suggest any other plugin similar to this if no one is fixing it.

          Ian Williams added a comment - - edited

          I'd take a stab in the dark and suggest something needs to change from :
          .getFullName() to .getUrl() ,
          perhaps at /src/main/java/hudson/plugins/global_build_stats/JobBuildResultFactory.java ?

          Ian Williams added a comment - - edited I'd take a stab in the dark and suggest something needs to change from : .getFullName() to .getUrl() , perhaps at /src/main/java/hudson/plugins/global_build_stats/JobBuildResultFactory.java ?

          Thanks ianw . Is it possible to fix it and make the release? That would be great help.

          I am just wondering what other plugin people are using.

          Naveen chandra sekhara added a comment - Thanks ianw . Is it possible to fix it and make the release? That would be great help. I am just wondering what other plugin people are using.

          Ian Williams added a comment -

          I am not a Java Developer, just a user of the plugin. The best way to see the change change implemented is for someone to submit a PR with the changes. If you have  (or if you know someone who has) some Java experience, make a fork, make the change and submit a PR.

          Ian Williams added a comment - I am not a Java Developer, just a user of the plugin. The best way to see the change change implemented is for someone to submit a PR with the changes. If you have  (or if you know someone who has) some Java experience, make a fork, make the change and submit a PR.

          Unfortunately same here ianw . I work on Python.

          Naveen chandra sekhara added a comment - Unfortunately same here ianw . I work on Python.

          dhinske  : can you please fix this. It's a wonderful plugin and is very useful to us. Thanks.

          Naveen chandra sekhara added a comment - dhinske   : can you please fix this. It's a wonderful plugin and is very useful to us. Thanks.

            victor_yousician Victor Balakine
            ianw Ian Williams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: