我有一个mysql实例,需要将csv文件转储到jenkins工作区中.不幸的是,Jenkins拥有工作空间目录的权限755,我需要能够经常创建和删除这种类型的作业,因此手动配置不起作用.如何在不编写脚本的情况下更改这些目录的默认权限呢?
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?
推荐答案只需更改工作区根目录上的权限.每个作业的工作空间将位于根目录下的子目录中,因此它们将继承根目录的权限.
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更多推荐
如何更改Fedora上Jenkins工作区目录的默认权限?
发布评论