0

What I'm basically trying to do is allow jenkins access my android-sdk-linux folder and all the sub-directories. My boss does not want to change permissions on the folder himself. I am supposed to do it during the build process. I have seen some examples that run some commands in the execute shell during the build process. Is there some commands that can I can run in that execute shell so that jenkins can have read write and execute authority on my android-sdk-linux folder ?

Thank you

tanzeelrana
  • 103
  • 2
  • 5

1 Answers1

1

If you have extended attributes available you can give individual users access with the setfacl command like so.

setfacl -Rm u:jenkins:rwx android-sdk-linux

Lacking ACL support you would likely have to create a group which is shared by all users who should have access and ensure that the directory is created with the appropriate permissions for that group.

Tom Scogland
  • 166
  • 3