我有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
Run Code Online (Sandbox Code Playgroud)
我用ssh测试过:
git@bitbucket.org:person/projectmarket.git
Run Code Online (Sandbox Code Playgroud)
这是错误:
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
Run Code Online (Sandbox Code Playgroud)
我也用"SSH密钥"完成了这些步骤.
在Jenkins下登录
sudo su jenkins
Run Code Online (Sandbox Code Playgroud)
将您的github密钥复制到Jenkins .ssh文件夹
cp ~/.ssh/id_rsa_github* /var/lib/jenkins/.ssh/
Run Code Online (Sandbox Code Playgroud)
重命名密钥
mv id_rsa_github id_rsa
mv id_rsa_github.pub id_rsa.pub
Run Code Online (Sandbox Code Playgroud)
但仍然没有在詹金斯工作git存储库. …
jenkins ×1