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

Build permission on agents is not working

    Details

    • Similar Issues:

      Description

      Jenkins Version: 2.164.1

      Role Strategy Plugin Version: 2.10

      I configured a role with all agent related permissions: Build, Configure, Connect, Disconnect...

      With this role assigned to a user, that user can Configure the agent, but it can't run builds on it. The cause of blockage indicates it lacks permissions to run on this slave.

      It is related with the authorization strategy implementing the getACL for Computer but not for Node. If implementing the ACL also for Node apparently works without issues.

       

       

       

        Attachments

          Activity

          Hide
          wcleong Wei Leong added a comment -

          I'm experiencing the same issue as well. Nuno Costa would you mind sharing how you got it working with RUN AS USER WHO TRIGGERED BUILD? 

          Show
          wcleong Wei Leong added a comment - I'm experiencing the same issue as well. Nuno Costa would you mind sharing how you got it working with RUN AS USER WHO TRIGGERED BUILD? 
          Hide
          asarkar2 Arindom Sarkar added a comment -

          Does anyone figured it out? How to resolve the issue?

          Show
          asarkar2 Arindom Sarkar added a comment - Does anyone figured it out? How to resolve the issue?
          Hide
          ncosta Nuno Costa added a comment -

          Wei Leong Arindom Sarkar From what I remembered, I had to provide general read and build privileges to the roles and then assign the users to those roles.

          Show
          ncosta Nuno Costa added a comment - Wei Leong Arindom Sarkar From what I remembered, I had to provide general read and build privileges to the roles and then assign the users to those roles.
          Hide
          gradol Oliver Grad added a comment - - edited

          Are there any news on that issue?

          I can reproduce it. All permissions set in the node-role are working (configure, connect, disconnect) except the build permission.

          We need this feature to restrict the usage of some special build nodes (setting global build permission on Agent is therefore not an option).

          Are there any other solutions for that scenario?

          The setup is Jenkins 2.249 and Role-based Authorization Strategy-Plugin 3.0

          Show
          gradol Oliver Grad added a comment - - edited Are there any news on that issue? I can reproduce it. All permissions set in the node-role are working (configure, connect, disconnect) except the build permission. We need this feature to restrict the usage of some special build nodes (setting global build permission on Agent is therefore not an option). Are there any other solutions for that scenario? The setup is Jenkins 2.249 and Role-based Authorization Strategy-Plugin 3.0
          Hide
          vinhdqhp QV added a comment -

          We really need this feature. Kindly review and resolve this bug please.

          Show
          vinhdqhp QV added a comment - We really need this feature. Kindly review and resolve this bug please.

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              luispiedra Luis Piedra-Márquez
            • Votes:
              6 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated: