git + jenkins获取问题

时间:2011-08-18 13:54:26

标签: git ssh jenkins

当我从git存储库中签出代码时,它会出现如下错误:

Started by user anonymous
Checkout:workspace / /Users/shriram/.jenkins/jobs/github1/workspace - hudson.remoting.LocalChannel@46347456
Using strategy: Default
Last Built Revision: Revision b0a93e1344ac7ce65fbfc34fb2d3b5a8b0a72e05 (origin/master)
Checkout:workspace / /Users/shriram/.jenkins/jobs/github1/workspace - hudson.remoting.LocalChannel@46347456
Fetching changes from 1 remote Git repository
Fetching upstream changes from ssh:///shriarm@17.209.10.99 : 22/~/jengittest.git
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
ERROR:  (Underlying report) : Error performing command: /opt/local/bin/git fetch -t ssh:///shriram@17.209.10.99 : 22/~/jengittest.git +refs/heads/*:refs/remotes/origin/*
Command "/opt/local/bin/git fetch -t ssh:///shriram@17.209.10.99 : 22/~/jengittest.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: Host key verification failed.
fatal: The remote end hung up unexpectedly

1 个答案:

答案 0 :(得分:1)

错误消息提示解决方案:17.209.10.99的主机密钥未知或无效。

.ssh/known_hosts文件中删除该主机的行。之后,使用ssh shriarm@17.209.10.99手动连接到该主机并再次接受主机密钥。