在有人批评我之前,我已经检查了所有相关的帖子,但仍然没有找到解决我的问题的方法。
我在Windows服务器上安装了带有Git插件的Hudson(不是我的选择),并且Hudson作为服务运行。 Git/bin
已经添加到了路径中。 但是我无法克隆存储库。 这里是控制台输出的简化显示:
Started by user anonymous
Checkout:workspace / C:\.hudson\jobs\sdf\workspace - hudson.remoting.LocalChannel@65394b
Last Built Revision: Revision 74200b32314231a5efdadd87bf36b42ec145c720 (origin/master)
Checkout:workspace / C:\.hudson\jobs\sdf\workspace - hudson.remoting.LocalChannel@65394b
Fetching changes from the remote Git repository
Fetching upstream changes from ssh://git.mccannlondon.co.uk/git/mccann_admin
[workspace] $ "C:\Program Files\Git\bin\git.exe" fetch -t ssh://git.mccannlondon.co.uk/git/mccann_admin +refs/heads/*:refs/remotes/origin/*
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 f1:48:2a:0a:d9:18:cf:2e:f2:8c:b3:25:7f:34:d5:34
Connection abandoned.
fatal: The remote end hung up unexpectedly
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
似乎需要对主机进行身份验证,但我不确定为什么当我设置管理员作为Hudson服务的所有者时,Hudson以用户anonymous启动作业。有谁知道:
a)如何更改Hudson的运行用户?
b)使用与Hudson相同的用户帐户连接到远程计算机,以允许Hudson获取数据?
如果此前已经发布了此问题,请见谅,但我花了好几个小时搜索,却找不到任何结果。
谢谢
Lewis