当我从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
答案 0 :(得分:1)
错误消息提示解决方案:17.209.10.99
的主机密钥未知或无效。
从.ssh/known_hosts
文件中删除该主机的行。之后,使用ssh shriarm@17.209.10.99
手动连接到该主机并再次接受主机密钥。