如何更改Fedora上Jenkins工作区目录的默认权限? [英] How to change default permissions on Jenkins workspace directory on fedora?

查看:102
本文介绍了如何更改Fedora上Jenkins工作区目录的默认权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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工作区目录的默认权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆