小编Jör*_*yer的帖子

jenkins 无法连接到 git 存储库

我无法以某种方式配置 git 存储库 url,Jenkins 可以访问它。

在“项目 > 配置 > 源代码管理”下,我将存储库 URL 设置为“git@store:repositories/testproject.git”

我收到此错误:

Failed to connect to repository : Command "/usr/bin/git -c core.askpass=true ls-remote -h git@store:repositories/testproject.git HEAD" returned status code 128:
stdout: 
stderr: Permission denied, please try again. 
Permission denied, please try again. 
Permission denied (publickey,password). 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

使用该 URL 的访问适用于 shell:

jenkins@dilbert:~$ /usr/bin/git -c core.askpass=true ls-remote -h git@store:repositories/testproject.git
git@store's password: 
4fd35a4f528e2f2921a52cfd03918b7cbde3d253 …
Run Code Online (Sandbox Code Playgroud)

git jenkins

11
推荐指数
1
解决办法
6万
查看次数

标签 统计

git ×1

jenkins ×1