GIT - clean checkout fails [message #1058291] |
Mon, 13 May 2013 09:28  |
Eclipse User |
|
|
|
Hi,
Hudson: 3.0.1-b2
Hudson GIT plugin: 2.2.1-h-1
GIT: 1.8.2
Im building GIT project on slave. When a job workspace dir is empty (either I clean it manually via workspace wipe out button or use Git plugin configuration option "Wipe out workspace before build")the build crashes on checkout. After that, on the filesystem I have only one folder .git. It contains standard git folders (but empty) and two files HEAD and config. HEAD contains
However, if I run the build again on that folder, the files will be checked out successfully. The problem occures only when the workspace is empty. HEAD content after successfull checkout
b9f5b15f0760d26543ba208d536a2f0c75b94237
Log after 1st attempt (empty workspace - build failed)
Started by user <MyUser>
Building remotely on punt
Checkout:test_git / /hudson/workspace/test_git - hudson.remoting.Channel@3e8eae1e:punt
Using strategy: Default
Last Built Revision: Revision b9f5b15f0760d26543ba208d536a2f0c75b94237 (origin/master)
Checkout:test_git / /hudson/workspace/test_git - hudson.remoting.LocalChannel@1a254ec
Cloning the remote Git repository
Cloning repository origin
ERROR: Error cloning remote repo 'origin' : Could not clone <MyGitRepo>
ERROR: Cause: Exception caught during execution of fetch command
Trying next repository
ERROR: Could not clone repository
FATAL: Could not clone
hudson.plugins.git.GitException: Could not clone
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:957)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:889)
at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2052)
at hudson.remoting.UserRequest.perform(UserRequest.java:107)
at hudson.remoting.UserRequest.perform(UserRequest.java:41)
at hudson.remoting.Request$2.run(Request.java:276)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)
Log after 2nd attempt (workspace remains after 1st attempt - build successful)
Started by user <MyUser>
Building remotely on punt
Checkout:test_git / /hudson/workspace/test_git - hudson.remoting.Channel@3e8eae1e:punt
Using strategy: Default
Last Built Revision: Revision b9f5b15f0760d26543ba208d536a2f0c75b94237 (origin/master)
Checkout:test_git / /hudson/workspace/test_git - hudson.remoting.LocalChannel@1a254ec
Fetching changes from the remote Git repository
Fetching upstream changes from <MyGitRepo>
Commencing build of Revision b9f5b15f0760d26543ba208d536a2f0c75b94237 (origin/master)
Checking out Revision b9f5b15f0760d26543ba208d536a2f0c75b94237 (origin/master)
[DEBUG] Skipping watched dependency update; build not configured with trigger: test_git #138
Finished: SUCCESS
The problem is always reproducible.
[Updated on: Mon, 13 May 2013 09:30] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: GIT - clean checkout fails [message #1506593 is a reply to message #1488133] |
Wed, 10 December 2014 19:26  |
Eclipse User |
|
|
|
Really!!, Hmm.. we tested on few slave machines, this issue (Git clone failure after WS clean) does not happen with git version 1.9.x and later.
[Updated on: Wed, 10 December 2014 19:27] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.11570 seconds