【发布时间】:2012-02-13 05:08:53
【问题描述】:
我有一个 Hudson 服务器和一个 git 存储库,它们都在我们的服务器(一台 ubuntu 机器)上运行。
每当我尝试使用 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 文件夹。
在此之后,我只是关注this 链接,并在没有密码的情况下进行了 ssh 登录
现在,hudson 可以在无需指定密码的情况下进行提取
【问题讨论】: