首页 文章

jenkins ec2-plugin用户权限问题

提问于
浏览
0

我们使用ec2-plugin启动ec2 Jenkins slave . 默认用户是ec2-user . 在日志中,我再次看到它尝试连接root . 所以基本上是Jenkins主目录“/ var / jenkins_home”或“/ home / ec2-user”或root所拥有的任何其他步骤 . 所以我们需要在我的管道工作阶段为ec2-user做一个chown . 我试图将jenkins home目录设置为/ home / ec2-user,但是自root下载文件或运行脚本以来仍然存在同样的问题 . 然后我试图在init脚本(脚本结束)中为ec2-user列出所有这些,但仍然是同样的问题 . 我在ec2-plugin配置中为sudo设置了root和slave命令前缀 . 我们可以摆脱这个许可问题吗?

1 回答

  • 0

    我无法摆脱chown,因为我正在运行jenkins作为容器并在其中安装Host卷 .

相关问题