朋友們,我在Jenkins控制檯中收到以下錯誤。通過Jenkins連接到Git服務器的問題
"Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h ssh://[email protected]:29418/mobile HEAD" returned status code 128:
stdout:
stderr: Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists."
嘗試了網絡上的所有選項。沒有工作。 這裏欣賞你的幫助
完整的日誌這裏
Building in workspace /Users/Shared/Jenkins/GIT
Cloning the remote Git repository
Cloning repository ssh://[email protected]:29418/mobile
> git init /Users/Shared/Jenkins/GIT # timeout=10
Fetching upstream changes from ssh://[email protected]:29418/mobile
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress ssh://[email protected]:29418/mobile +refs/heads/*:refs/remotes/origin/*
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git -c core.askpass=true fetch --tags --progress ssh://[email protected]:29418/mobile +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
感謝, 馬達夫
我沒有創建的.ssh文件夾,並能夠連接通過命令提示符(終端)到GIT。我使用OS X BTW –
您是否能夠使用ssh在沒有jenkins的情況下克隆本地系統上的回購? –
絕對如此。它確實如此。但有時我必須運行此命令/ n ssh-add .ssh/id_rsa/n以使克隆命令正常工作唯一問題通過Jenkins –