dashboard-view-plugin
dashboard-view-plugin copied to clipboard
[JENKINS-21959] Dashboard Plug In Links do not work together with 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.
Originally reported by donrodolfo59, imported from: Dashboard Plug In Links do not work together with Cloudbees Folder Plug In
- assignee: petehayes
- status: Open
- priority: Major
- resolution: Unresolved
- imported: 2022-10-30
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 '
http://mycompany.com/jenkins/job/ProjectFolder/job/Project1/
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