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

Dashboard Plug In Links do not work together with Cloudbees Folder Plug In

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • dashboard-view-plugin
    • Jenkins version 1.551
      CloudBees Folder Plug In

      On the dashboard view (Jobs Grid) the link to the jobs do not work together with the CloudBees Folder Plug In. When I select a link I always get HTTP ERROR 404 with a wrong link.
      It seems that this view can not solve nested folders.

          [JENKINS-21959] Dashboard Plug In Links do not work together with Cloudbees Folder Plug In

          Jeff VIncent added a comment - - edited

          I'm running Jenkins 1.568

          I'm having this same issue. I am using folders to organize projects by function and need to create a consolidated dashboard of test jobs and am using the "Test Statistics Grid" portlet.

          My Dashboard view is NOT inside a folder. It DOES include jobs that are in a folder.

          Links that belong to projects that are NOT in a folder work just fine. The portlet seems to be finding the projects and displaying test result statistics just fine, it is simply an issue with the link to the jobs. Examples below:

          Link within dashboard from Project folder (doesn't work):
          http://mycompany.com/jenkins/view/Test%20Dashboard/job/Project1/

          In playing around, the corrected link below DOES work:
          http://mycompany.com/jenkins/view/Test%20Dashboard/job/ProjectFolder/job/Project1/

          It seems it is simply missing the '<Folder>/job' portion where the non-dashboard link is:
          http://mycompany.com/jenkins/job/ProjectFolder/job/Project1/

          Jeff VIncent added a comment - - edited I'm running Jenkins 1.568 I'm having this same issue. I am using folders to organize projects by function and need to create a consolidated dashboard of test jobs and am using the "Test Statistics Grid" portlet. My Dashboard view is NOT inside a folder. It DOES include jobs that are in a folder. Links that belong to projects that are NOT in a folder work just fine. The portlet seems to be finding the projects and displaying test result statistics just fine, it is simply an issue with the link to the jobs. Examples below: Link within dashboard from Project folder (doesn't work): http://mycompany.com/jenkins/view/Test%20Dashboard/job/Project1/ In playing around, the corrected link below DOES work: http://mycompany.com/jenkins/view/Test%20Dashboard/job/ProjectFolder/job/Project1/ It seems it is simply missing the '<Folder>/job' portion where the non-dashboard link is: http://mycompany.com/jenkins/job/ProjectFolder/job/Project1/

          Aurélien Pupier added a comment - - edited

          Aurélien Pupier added a comment - - edited To help further investigation: The faulty link come from https://github.com/jenkinsci/dashboard-view-plugin/blob/master/src/main/resources/hudson/plugins/view/dashboard/core/UnstableJobsPortlet/portlet.jelly l.56 It is using the Util method from https://github.com/jenkinsci/dashboard-view-plugin/blob/master/src/main/resources/hudson/plugins/view/dashboard/jobLink.jelly I suppose that the fix will be similar to what was done for https://issues.jenkins-ci.org/browse/JENKINS-19310 during this commit: https://github.com/jenkinsci/jenkins/commit/ea95434938b2111d8768528823990a78bdc58d3e

            petehayes Peter Hayes
            donrodolfo59 Rudolf Honegger
            Votes:
            6 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: