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

ContainedInView Role-Strategy Macro Doesn't Apply to Multibranch Pipeline Job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • role-strategy-plugin
    • None

      using "Role-based Authorization Strategy" plugin to give different teams access to their relevant pipeline jobs, without seeing or having any access to pipelines related to other teams.

      to achieve this, we use dedicated views. each view has multiple jobs with no strict pattern for the job's name or type, could be pipeline, multibranch or folder.

      using the plugin's "@ContainedInView" macro, we managed to achieve the desired behavior, where each team has access to its relevant view and all jobs inside that view. the major issue is with the multibranch pipeline jobs. when the user clicks the job, it appears empty; no branches or job history whatsoever. when the admin provided the user with a direct link to the job, Jenkins showed a "lack of permissions" error message and the page wasn't displayed.

      there doesn't seem to be any documentation of any kind regarding multibranch pipelines in the plugin's readme page or in the macros description.

      please advise!

        1. DESIRED.png
          250 kB
          Hamza
        2. ACTUAL.png
          251 kB
          Hamza
        3. ASSIGN-ROLES.png
          197 kB
          Hamza
        4. MANAGE-ROLES.png
          389 kB
          Hamza
        5. PIPELINE-JOB.png
          325 kB
          Hamza
        6. QA-VIEW-1.png
          257 kB
          Hamza
        7. QA-VIEW-2.png
          242 kB
          Hamza

            mawinter69 Markus Winter
            asihamza Hamza
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: