问题
在项目中配置git仓库地址时,报无权限:
Failed to connect to repository : Command "git ls-remote -h git@xxx.git 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 rightsand the repository exists.
原因
密钥验证失败,导致无法从远程仓库读取。请确保您有正确的访问权限和git仓库的存在。
解决方案
1、部署jenkins的机器创建密钥文件。
执行: