首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jenkins Ghprb构建失败:错误:克隆远程存储库‘remote’时出错

Jenkins Ghprb构建失败:错误:克隆远程存储库‘remote’时出错
EN

Stack Overflow用户
提问于 2020-11-06 09:59:35
回答 1查看 363关注 0票数 0

我的问题只是一个人的分支机构的特定公关。其他的构建都成功地启动并完成了,没有问题。

我可以通过在打开PR时发表评论来触发构建,除了这个特定的…

下面的日志

代码语言:javascript
复制
GitHub pull request #712 of commit 6ed63bc4f991b2209f8088c1ce18b075251d8532, no merge conflicts.
Running as SYSTEM
Setting status of 6ed63bc4f991b2209f8088c1ce18b075251d8532 to PENDING with url http://<jenkins server>:8080/job/<project name>/917/ and message: 'Build started for merge commit.'
Using context: <check message>
Building in workspace /nobackup/jenkins/workspace/<project_name>
The recommended git tool is: NONE
using credential <credential>
Cloning the remote Git repository
Cloning repository https://wwwin-github.cisco.com/xcare/chaos.git
Cloning the remote Git repository
Cloning repository https://wwwin-github.<company name>.com/<repo>  /usr/bin/git init /nobackup/jenkins/workspace/<project_name> # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Could not init /nobackup/jenkins/workspace/<project_name>
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:997)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:752)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1219)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1297)
    at hudson.scm.SCM.checkout(SCM.java:505)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
    at hudson.model.Run.execute(Run.java:1894)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:428)
Caused by: hudson.plugins.git.GitException: Error performing git command: /usr/bin/git init /nobackup/jenkins/workspace/PR_Check
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2457)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2380)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2376)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1923)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:995)
    ... 12 more
Caused by: java.io.IOException: Cannot run program "/usr/bin/git" (in directory "/nobackup/jenkins/workspace/<project_name>"): error=7, Argument list too long
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
    at hudson.Proc$LocalProc.<init>(Proc.java:252)
    at hudson.Proc$LocalProc.<init>(Proc.java:221)
    at hudson.Launcher$LocalLauncher.launch(Launcher.java:996)
    at hudson.Launcher$ProcStarter.start(Launcher.java:508)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2443)
    ... 16 more
Caused by: java.io.IOException: error=7, Argument list too long
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 21 more
ERROR: Error cloning remote repo 'origin'
EN

回答 1

Stack Overflow用户

发布于 2020-11-06 10:16:29

哦,刚刚找到问题了..。我祝我的同事和他/她的家人圣诞快乐,新年快乐。根本原因是https://issues.jenkins-ci.org/browse/JENKINS-38576

我的同事在他的评论中留下了一段疯狂的长篇大论...

我猜自从network或github诞生以来,互联网上还没有人做过这样的事情……

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64707847

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档