我有一个运行在我们的服务器(一台Ubuntu机器上)上的Hudson服务器和Git仓库。
每当我尝试使用Hudson构建我的应用程序时,它会显示以下信息:
Iniciado pelo usuário anonymous
Checkout:workspace / /usr/share/tomcat6/.hudson/jobs/ECF/workspace - hudson.remoting.LocalChannel@176150c
Using strategy: Default
Checkout:workspace / /usr/share/tomcat6/.hudson/jobs/ECF/workspace - hudson.remoting.LocalChannel@176150c
Fetching changes from the remote Git repository
Fetching upstream changes from ssh://git@192.168.0.10/git/germantech.git
ERROR: Problem fetching from servidor / servidor - could be unavailable. Continuing anyway
ERROR: (Underlying report) : Error performing command: git fetch -t ssh://git@192.168.0.10/git/germantech.git +refs/heads/*:refs/remotes/origin/*
Command "git fetch -t ssh://git@192.168.0.10/git/germantech.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: Host key verification failed.
fatal: The remote end hung up unexpectedly
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
我在这里缺少什么?有什么想法吗?谢谢提前。
编辑
好的,解决了!
首先,我用我的Hudson用户登录(sudo su - -s /bin/bash tomcat6
),然后删除了我的.ssh文件夹。
之后,我只需按照此链接进行操作,进行无密码ssh登录
现在,Hudson可以进行获取而无需指定密码。