How to change default permissions on Jenkins works

2019-08-07 16:37发布

I have a mysql instance that needs to dump csv files into a jenkins workspace. Unfortunately, Jenkins has permissions 755 for the workspace directory, and I need to be able to create and delete jobs of this type very often, so manual configuration doesn't work. How do I change the default permissions on these directories without writing a script do do it?

标签: linux jenkins
1条回答
贪生不怕死
2楼-- · 2019-08-07 17:24

Just change the permissions on the root workspace directory. The workspaces for each job will be in subdirectories underneath the root, so they will inherit the root directory's permissions.

chown -R jenkins_user:jenkins_group /path_to_workspace_root
查看更多
登录 后发表回答