【问题标题】:Jenkins GIT Repo URL Error詹金斯 GIT 回购 URL 错误
【发布时间】:2016-03-21 09:01:09
【问题描述】:
 Failed to connect to repository : Error performing command: C:\Program
 Files\Git\bin ls-remote -h ssh://git@localhost:7999/sam/bo.git HEAD

尝试将 GIT 与 Jenkins 集成时遇到上述错误。请查看以下错误的屏幕截图。

Jenkins GIT URL 回购问题

【问题讨论】:

标签: git jenkins


【解决方案1】:

在您的问题中,您使用了C:\。你的 git 路径必须以 https:// 开头

你还没有设置GIT的凭据,创建它并设置在jenkins的凭据框中。

【讨论】:

    【解决方案2】:

    你可以看到命令没有正确启动,你必须正确设置git.exe的路径,以便命令应该包含git.exe的完整路径(包括git.exe)

    你的命令是, C:\Program Files\Git\bin ls-remote -h ssh://git@localhost:7999/sam/bo.git HEAD

    您必须在中设置 git.exe(包括 git.exe)的路径 管理 Jenkins>全局工具配置>Git 可执行文件的路径并将路径设置为“C:\Program Files\Git\bin\git.exe”

    一旦你设置了路径,它看起来像 C:\Program Files\Git\bin\git.exe ls-remote -h ssh://git@localhost:7999/sam/bo.git HEAD

    完成此操作后,您可以检查 https 链接或 ssh 链接并检查上面回答的凭据。

    【讨论】:

      猜你喜欢
      • 2015-05-11
      • 1970-01-01
      • 1970-01-01
      • 2015-05-31
      • 2019-11-11
      • 2019-05-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多