-
New Feature
-
Resolution: Not A Defect
-
Major
-
Jenkins version 2.46.2
A very usual scenario consists on using multibranch pipelines in projects with two branches: develop and master. This creates two subprojects, one for each branch:
App_Pipeline
|---master
|---develop
We use Role Strategy plugin to control the authorization (visibility and execution) of the pipelines depending on the assigned role, for instance:
Project Roles:
- manager: Uses a regexp App_.*
- developer: Uses a regexp App_.*
With these roles, obviously both types of users see the superproject (App_Pipeline), and can see and run both subprojects.
The point is that we would need some roles (developers) to be able to see and run only the develop subproject and some others (managers) to view and run both subprojects, master and develop.
Right now there is no way to configure this per subproject. There isn't either an alternative such as programmatically checking the user role in the script to abort the execution.