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
我已经使用ssh进行了测试:
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中,git仓库依然无法工作。
感谢您的帮助!