aniatbr / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Git shallow clone does not work #294

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Starting with build#637 the CI build fails to clone the repository.
https://spray.ci.cloudbees.com/job/spray-ci-build/637/

Found http://code.google.com/p/support/issues/detail?id=5753 indicating a 
similar problem.

Executing this command line fails also locally:
<pre>
git clone --progress -o origin --depth 1 
https://code.google.com/a/eclipselabs.org/p/spray/
</pre>

{{{
Started by an SCM change
[EnvInject] - Loading node environment variables.
Building remotely on s-dffad1c6 in workspace 
/scratch/jenkins/workspace/spray-ci-build
Checkout:spray-ci-build / /scratch/jenkins/workspace/spray-ci-build - 
hudson.remoting.Channel@1c1df127:s-dffad1c6
Using strategy: Default
Last Built Revision: Revision a203bb0d77e556123968fe0053c3817deb1a6556 
(origin/master)
Using shallow clone
Cloning the remote Git repository
Cloning repository https://code.google.com/a/eclipselabs.org/p/spray/
git --version
git version 1.7.11.7
ERROR: Error cloning remote repo 'origin' : Could not clone 
https://code.google.com/a/eclipselabs.org/p/spray/
hudson.plugins.git.GitException: Could not clone 
https://code.google.com/a/eclipselabs.org/p/spray/
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:226)
    at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.clone(AbstractGitAPIImpl.java:57)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.clone(CliGitAPIImpl.java:33)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1006)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:942)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2387)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:326)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)
Caused by: hudson.plugins.git.GitException: Command "git clone --progress -o 
origin --depth 1 https://code.google.com/a/eclipselabs.org/p/spray/ 
/scratch/jenkins/workspace/spray-ci-build" returned status code 128:
stdout: Cloning into '/scratch/jenkins/workspace/spray-ci-build'...

stderr: error: RPC failed; result=18, HTTP code = 200
fatal: expected shallow/unshallow, got Error: internal server error
}}}

Original issue reported on code.google.com by karsten....@googlemail.com on 13 Aug 2013 at 9:50

GoogleCodeExporter commented 8 years ago

Original comment by karsten....@googlemail.com on 13 Aug 2013 at 9:51

GoogleCodeExporter commented 8 years ago
In the Advanced section in the Git configuration of Jenkins the option "Use 
shallow clone" must be disabled.

Original comment by karsten....@googlemail.com on 13 Aug 2013 at 10:00