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

Allow non-administrators to use "Query and Trigger Gerrit Patches"

    Details

    • Type: Improvement
    • Status: In Review (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Component/s: gerrit-trigger-plugin
    • Labels:
      None
    • Environment:
      Gerrit Trigger plugin
      Role Strategy Plugin

    • Similar Issues:

      Description

      When I log in to Jenkins, I can see the "Query and Trigger Gerrit Patches" on the left side of the screen.
      However, other people cannot see this useful option.

      The "Query and Trigger Gerrit Patches" option is only available to Jenkins administrators. 

      See:  https://github.com/jenkinsci/gerrit-trigger-plugin/blob/master/src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/PluginImpl.java#L91

      If would be better if this did not require such high privileges.

      Note that I am using the Role Strategy plugin.

       

        Attachments

          Activity

          Hide
          rsandell rsandell added a comment -

          You can give the manual trigger permission to anyone. The code path you are linking to only shows that the permission is implicitly set for administrators.

          Show
          rsandell rsandell added a comment - You can give the manual trigger permission to anyone. The code path you are linking to only shows that the permission is implicitly set for administrators.
          Hide
          mwebber Matthew Webber added a comment -

          You can give the manual trigger permission to anyone.

          I'm using the Role Strategy plugin, which may be the problem here. The "Manual Trigger" privilege certainly appears as an available option. The attached screenshot shows that I have granted access to all authenticated users. Unfortunately, even with this only administrators can see the option. Is this a problem with Role Strategy, or with the way the Gerrit Trigger plugin does things?

          Thanks

           

          Show
          mwebber Matthew Webber added a comment - You can give the manual trigger permission to anyone. I'm using the Role Strategy plugin, which may be the problem here. The "Manual Trigger" privilege certainly appears as an available option. The attached screenshot shows that I have granted access to all authenticated users. Unfortunately, even with this only administrators can see the option. Is this a problem with Role Strategy, or with the way the Gerrit Trigger plugin does things? Thanks  

            People

            • Assignee:
              rsandell rsandell
              Reporter:
              mwebber Matthew Webber
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: