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

Multibranch pipelines should support role restrictions

XMLWordPrintable

      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.

            Unassigned Unassigned
            codependent Jose A. Iñigo
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: