Jenkins 部署项目出现 Failed to connect to repository : Command "git ls-remote XXX

表示为,Jenkins无法连接到你输入的Repository URL的 Git仓库……

Jenkins 部署项目出现 Failed to connect to repository : Command "git ls-remote XXX

 

 

怎么办呢?

试了很多方法:

1、在git仓库里面配置公钥、在Jenkins任务里配置git私钥——此法无效

(reference: https://blog.csdn.net/huqiankunlol/article/details/93485719

 

2、倏而想到,要想是要在Repository URL  加上账号和密码才行。

试了一下本地Clone:

   Jenkins 部署项目出现 Failed to connect to repository : Command "git ls-remote XXX

 ——果不其然,确实是需要在git URL 上,加入账号和密码的。

    Jenkins 部署项目出现 Failed to connect to repository : Command "git ls-remote XXX

 

 ——完美解决,不会报错了。

 

相关文章:

  • 2022-12-23
  • 2021-07-26
  • 2021-07-27
  • 2021-10-14
  • 2021-12-21
  • 2021-11-01
  • 2022-12-23
猜你喜欢
  • 2021-08-12
  • 2021-07-29
  • 2021-08-18
  • 2021-06-21
  • 2021-06-05
  • 2021-09-10
相关资源
相似解决方案