私のジェンキンプロジェクトの1つをgitでソースコード管理に入れたいと思います。しかしjenkins gitを設定すると "ホストキーの確認に失敗しました"というエラーが返されます
、私はプロジェクトの設定ページにの下でソースコード管理タブリポジトリURLに[email protected]:myGitlabAccount/myProjectName.git
を入力しました。私は、Windowsのコマンドラインの下git.exe ls-remote -h [email protected]:myGitlabAccount/myProjectName.git
を入力するとエラーメッセージがありません
Failed to connect to repository : Command "git.exe ls-remote -h [email protected]:myGitlabAccount/myProjectName.git" 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.
:私は、次のエラーメッセージを見ました。
私はgit clone [email protected]:myGitlabAccount/myProjectName.git
を正常に実行できます。
そして、私がLinuxのjenkinsユーザーであれば、Jenkins Host key verification failedは私の問題の解決策だと思います。
しかし、私はWindows環境下でjenkinsを使用していますが、と呼ばれるユーザーは見つかりませんでした。Windowsではです。
jenkinsユーザーに切り替えて、Windows環境で手動でgit ls-remote -h [email protected]:person/projectmarket.git HEAD
と入力するとどうなりますか?
# generate keys
ssh-keygen -t rsa
クリックが上を入力します。
でも同じことをやってください。 – Alon