最佳答案
我有一个问题与 Jenkins,设置“ git”,显示以下错误:
Failed to connect to repository : Command "git ls-remote -h https://person@bitbucket.org/person/projectmarket.git HEAD" returned status code 128:
stdout:
stderr: fatal: Authentication failed
我用 嘘测试过:
git@bitbucket.org:person/projectmarket.git
这是错误的:
Failed to connect to repository : Command "git ls-remote -h git@bitbucket.org:person/projectmarket.git HEAD" returned status code 128:
stdout:
stderr: Host key verification failed.
fatal: The remote end hung up unexpectedly
我还使用“ SSH 密钥”完成了这些步骤。
用 Jenkins 登陆
sudo su jenkins
将您的 github 密钥复制到 Jenkins. ssh 文件夹
cp ~/.ssh/id_rsa_github* /var/lib/jenkins/.ssh/
重命名钥匙
mv id_rsa_github id_rsa
mv id_rsa_github.pub id_rsa.pub
但在 Jenkins中仍然不能使用 饭桶存储库。
谢谢帮忙。