Jenkins Git插件无法创建.ssh文件夹

时间:2016-01-30 08:36:47

标签: git jenkins ssh 64-bit msys

我在Jenkins服务器中收到此错误

Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h git@mygitrepository.com:my_username/myrepository.git HEAD" returned status code 128:
stdout: 
stderr: Could not create directory '/home/my_username/.ssh'. 
Failed to add the host to the list of known hosts (/home/my_username/.ssh/known_hosts). 
Permission denied (publickey). 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我不知道为什么但是插件试图在/ home / my_username /下创建.ssh,这在Windows中不存在。我正在尝试将其路由到另一个文件夹“说C:/ Jenkins”,但设置USERPROFILE或HOME envr。变量不起作用。

有任何帮助吗?

由于

0 个答案:

没有答案