繁体   English   中英

使用SSH代理在Jenkins中配置从节点

[英]Configuration of a slave node in Jenkins with SSH agent

尝试使用SSH代理在Jenkins中配置从属节点时出现此错误。 我该如何解决?

[11/07/17 13:13:05] [SSH] Checking java version of java
[11/07/17 13:13:05] [SSH] java -version returned 1.8.0_151.
[11/07/17 13:13:05] [SSH] Starting sftp client.
[11/07/17 13:13:05] [SSH] Remote file system root /home/Jenkins does not exist. Will try to create it...
java.io.IOException: Could not copy slave.jar into '/home/Jenkins' on slave
    at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:1152)
    at hudson.plugins.sshslaves.SSHLauncher.access$400(SSHLauncher.java:145)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:816)
    at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:793)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Failed to mkdir /home/Jenkins
    at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:83)
    at hudson.plugins.sshslaves.SSHLauncher.copySlaveJar(SSHLauncher.java:1120)
    ... 7 more
Caused by: com.trilead.ssh2.SFTPException: Permission denied (SSH_FX_PERMISSION_DENIED: The user does not have sufficient permissions to perform the operation.)
    at com.trilead.ssh2.SFTPv3Client.expectStatusOKMessage(SFTPv3Client.java:555)
    at com.trilead.ssh2.SFTPv3Client.mkdir(SFTPv3Client.java:955)
    at hudson.plugins.sshslaves.SFTPClient.mkdirs(SFTPClient.java:81)
    ... 8 more
[11/07/17 13:13:05] Launch failed - cleaning up connection
[11/07/17 13:13:05] [SSH] Connection closed.

似乎您尚未为通过ssh登录的用户设置主目录,并且/home目录已锁定,因此用户无法创建它(应该如此)。 您可能只需要在具有运行Slave.jar用户的适当权限的从属计算机上创建/home/jenkins jenkins。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM