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

          Show
          luispiedra Luis Piedra-Márquez added a comment - Pull Request: https://github.com/jenkinsci/role-strategy-plugin/pull/59
          Hide
          runzexia runze xia added a comment -

          Hi What is the log after the failure? Luis Piedra-Márquez

          Show
          runzexia runze xia added a comment - Hi What is the log after the failure? Luis Piedra-Márquez
          Hide
          luispiedra Luis Piedra-Márquez added a comment -

          No error logged.

          It's just the build does not enter any slave altought it should have permissions to do so, and points it in the cause of blockage.

          Show
          luispiedra Luis Piedra-Márquez added a comment - No error logged. It's just the build does not enter any slave altought it should have permissions to do so, and points it in the cause of blockage.
          Hide
          zentavr Andrey Miroshnichenko added a comment -

          I have the same issue as well

          Show
          zentavr Andrey Miroshnichenko added a comment - I have the same issue as well
          Hide
          ncosta Nuno Costa added a comment - - edited

          I also saw this happening. If I change the Project Default Build Authorization from RUN AS USER WHO TRIGGERED BUILD to RUN AS SYSTEM, it runs without any issue.

          UPDATE: After doing some tweaking on Global and project roles permissions, I got it working with RUN AS USER WHO TRIGGERED BUILD, running the builds on Jenkins master.

          Show
          ncosta Nuno Costa added a comment - - edited I also saw this happening. If I change the Project Default Build Authorization from RUN AS USER WHO TRIGGERED BUILD to RUN AS SYSTEM , it runs without any issue. UPDATE: After doing some tweaking on Global and project roles permissions, I got it working with RUN AS USER WHO TRIGGERED BUILD, running the builds on Jenkins master.
          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.

            People

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

              Dates

              • Created:
                Updated: