我的问题是只为一个特定的公关从一个人的分支。其他构建都成功启动并完成,没有问题。
我可以通过在开放的公关评论触发建设,除了这个特定的一个.
下面的日志
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'
1条答案
按热度按时间dwbf0jvd1#
根本原因是https://issues.jenkins-ci.org/browse/JENKINS-38576。
在评论部分,有一个解决这个问题的方法。