简体   繁体   English

Jenkins-Github集成-临时错误-错误:克隆远程存储库“源”时出错

[英]Jenkins-Github integration- Adhoc Error - ERROR: Error cloning remote repo 'origin'

All, 所有,

This is one of the error for me as nightmare, since this is completely adhoc and dont know why this error is coming and why its getting resolved by itself. 这对我来说是一场噩梦,因为它完全是自欺欺人的错误,不知道为什么会出现此错误,以及为什么它会自行解决。

Basically, i am trying build a job which pull the code from the githib repo. 基本上,我正在尝试建立一个从githib存储库中提取代码的工作。 This works most of the time but sometimes all of sudden i get the below error in Jenkins. 这在大多数情况下都有效,但有时突然间,我在詹金斯遇到了以下错误。

ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "C:\\Program Files\\Git\\cmd\\git.exe fetch --no-tags --progress https://github.com/rammetla/LouisvilleOutletCode.git +refs/heads/ :refs/remotes/origin/ " returned status code -1: stdout: 错误:克隆远程存储库“源”时出错hudson.plugins.git.GitException:命令“ C:\\ Program Files \\ Git \\ cmd \\ git.exe提取--no-tags --progress https://github.com/rammetla /LouisvilleOutletCode.git + refs / heads / :refs / remotes / origin / “返回状态码-1:stdout:

And i have referred n number of posts for soluation but none of them appeared to be a right one for me. 我已经推荐了n个职位来寻求解决,但这些职位似乎都不适合我。

Also, in the jenkins job, under git section i see the below message in highlighted red color. 此外,在詹金斯工作中,在git部分下,我看到以下消息以红色突出显示。

Failed to connect to repository : Command "C:\\Program Files\\Git\\cmd\\git.exe ls-remote -h https://github.com/rammetla/LouisvilleOutletCode.git HEAD" returned status code -1: stdout: stderr: 无法连接到存储库:命令“ C:\\ Program Files \\ Git \\ cmd \\ git.exe ls-remote -h https://github.com/rammetla/LouisvilleOutletCode.git HEAD”返回状态码-1:stdout:stderr :

Please suggest a solution once for all. 请彻底提出一个解决方案。

Your help is deeply appreciated. 非常感谢您的帮助。

One possible (not solution but) workaround would be to: 一种可能的(不是解决方案,但) 解决方法是:

That would avoid any HTTPS credential issue, and its related credential helper which might at time cache the incorrect ones. 这样可以避免任何HTTPS凭据问题及其相关的凭据帮助程序 ,这些问题有时可能会缓存不正确的凭据帮助程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM