Jenkins Ghprb构建失败:错误:克隆远程repo时出错';原产地';
我的问题只针对个人分支机构的特定公关。其他构建都成功启动并顺利完成 我可以通过在公开PR中发表评论来触发构建,除了这个特定的 记录在下面Jenkins Ghprb构建失败:错误:克隆远程repo时出错';原产地';,jenkins,ghprb,Jenkins,Ghprb,我的问题只针对个人分支机构的特定公关。其他构建都成功启动并顺利完成 我可以通过在公开PR中发表评论来触发构建,除了这个特定的 记录在下面 GitHub pull request #712 of commit 6ed63bc4f991b2209f8088c1ce18b075251d8532, no merge conflicts. Running as SYSTEM Setting status of 6ed63bc4f991b2209f8088c1ce18b075251d8532 to PEND
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'
提交6ED63BC4F991B2009F8088C1CE18B075251D8532的GitHub拉取请求#712,无合并冲突。
作为系统运行
将6ED63BC4F991B2009F8088C1CE18B075251D8532的状态设置为挂起,url为http://:8080/job//917/并显示消息:“为合并提交启动生成。”
使用上下文:
在工作区中构建/nobackup/jenkins/workspace/
推荐的git工具是:无
使用凭证
克隆远程Git存储库
克隆存储库https://wwwin-github.cisco.com/xcare/chaos.git
克隆远程Git存储库
克隆存储库https://wwwin-github..com/ /usr/bin/git init/nobackup/jenkins/workspace/#timeout=10
错误:克隆远程回购“源”时出错
hudson.plugins.git.git异常:无法初始化/nobackup/jenkins/workspace/
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:997)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:752)
位于hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1219)
位于hudson.plugins.git.GitSCM.checkout(GitSCM.java:1297)
在hudson.scm.scm.checkout(scm.java:505)
在hudson.model.AbstractProject.checkout(AbstractProject.java:1206)上
位于hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
位于jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
位于hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
位于hudson.model.Run.execute(Run.java:1894)
运行(FreeStyleBuild.java:43)
在hudson.model.ResourceController.execute(ResourceController.java:97)
在hudson.model.Executor.run(Executor.java:428)
原因:hudson.plugins.git.git异常:执行git命令时出错:/usr/bin/git init/nobackup/jenkins/workspace/PR\u Check
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2457)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2380)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2376)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1923)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:995)
... 还有12个
原因:java.io.IOException:无法运行程序“/usr/bin/git”(在目录“/nobackup/jenkins/workspace/”中):错误=7,参数列表太长
位于java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
在hudson.Proc$LocalProc.(Proc.java:252)
在hudson.Proc$LocalProc.(Proc.java:221)
位于hudson.Launcher$LocalLauncher.launch(Launcher.java:996)
位于hudson.Launcher$ProcStarter.start(Launcher.java:508)
位于org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2443)
... 还有16个
原因:java.io.IOException:错误=7,参数列表太长
位于java.lang.UNIXProcess.forkAndExec(本机方法)
位于java.lang.UNIXProcess(UNIXProcess.java:247)
在java.lang.ProcessImpl.start(ProcessImpl.java:134)处
位于java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 还有21个
错误:克隆远程回购“源”时出错
哦,刚刚发现问题。。。
祝我的同事及其家人圣诞快乐,新年快乐。
根本原因是
我的同事在他的评论中留下了一段很长的描述
我猜自从网络或github诞生以来,互联网上没有人做过这样的事情