如何更改Fedora上Jenkins工作区目录的默认权限?

编程入门 行业动态 更新时间:2024-10-26 16:22:31
本文介绍了如何更改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工作区目录的默认权限?

本文发布于:2023-10-23 06:16:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1520035.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何更改   权限   目录   工作   Jenkins

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!