SA weekend patch reboot之后突然就没法build了...
build 的 console output-
> /usr/bin/git fetch --tags --progress /home/user/repositories/git/user.git
+refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from /home/user/
repositories/git/user.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016)
at hudson.scm.SCM.checkout(SCM.java:484)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1270)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(
AbstractBuild.java:609)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.
java:531)
at hudson.model.Run.execute(Run.java:1717)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:537)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --
tags --progress /home/user/repositories/git/user.git +refs/heads/*:refs/
remotes/origin/*" returned status code 128:
stdout:
stderr: error: cannot run git-upload-pack '/home/user/repositories/git/user.
git': No such file or directory
fatal: unable to fork
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
CliGitAPIImpl.java:1591)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
launchCommandWithCredentials(CliGitAPIImpl.java:1379)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(
CliGitAPIImpl.java:86)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl
.java:324)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733)
... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE
1. git和jenkins 在一个box上,应该不是ssh的问题
2. login bax as jenkins, run /usr/bin/git fetch --tags --progress /home/user
/repositories/git/user.git +refs/heads/*:refs/remotes/origin/* 没有问题
3. Upgrade jenkins到1.600, GIT client plugin 到1.17.1, GIT Plugin到2.3.5还是
不行
4. 新建Freestyle project
, gradle project,不在Configure System里specify JDK, 可以fetch-
Fetching upstream changes from /home/user/repositories/git/user.git
> /usr/bin/git --version # timeout=10
> /usr/bin/git fetch --tags --progress /home/user/repositories/git/user.git
+refs/heads/*:refs/remotes/origin/*
> /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} #
timeout=10
Checking out Revision c6223c5c4693dc9be933b9e4b2fa915fea311891 (refs/remotes
/origin/master)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f c6223c5c4693dc9be933b9e4b2fa915fea311891
> /usr/bin/git rev-list 050ac61d242b61ab88f533932820cab4e44db7b7 # timeout=
10
[Gradle] - Launching build.
[PROJECT] $ /var/lib/jenkins/tools/hudson.plugins.gradle.GradleInstallation/
Main/bin/gradle
ERROR: JAVA_HOME is not set and no 'java' command could be found in your
PATH.
specify JDK之后就不能fetch, same error
5. 新建Maven project 不work, same error
哪位大牛有啥clue可以further debug 一下。。。?bow~