-
Improvement
-
Resolution: Unresolved
-
Major
-
None
The "Build Pipeline Plugin" (https://wiki.jenkins-ci.org/display/JENKINS/Build+Pipeline+Plugin) shows each pipeline as a view. It would be great if this views were filtered by the "Role Strategy Plugin" (https://wiki.jenkins-ci.org/display/JENKINS/Role+Strategy+Plugin) when the user has no right for any job in the pipeline.
Currently, the user sees the pipeline view which shows an empty page (because he/she has no rights for any of the jobs).
- is related to
-
JENKINS-16098 Nested View Plugin shows FAIL build staus whenever Build Pipeline Plugin is used as a Nested View
-
- Reopened
-
From my reading of this: https://github.com/jenkinsci/jenkins/commit/85e13303f8cfbebeb7dab347fda8ccf4069070b6 (from https://issues.jenkins-ci.org/browse/JENKINS-3681)
The getItems() call must not be returning an empty collection for a user that does not have permissions on the jobs used in the pipeline, and the getItems() call for a build pipeline view is (https://github.com/jenkinsci/build-pipeline-plugin/blob/master/src/main/java/au/com/centrumsystems/hudson/plugin/buildpipeline/BuildPipelineView.java)
Jenkins internals aren't my strongest skills, but I wonder would the following change help with this?
Change BuildPipelineView.getItems() to: