Well, everything is more difficult on Windows.

I do not use Windows but I work in an organization where people have to do 
battle with the same issues you are fighting with.

I think your issues might be caused by the "git" command not being a .exe but a 
.bat. 

-- Sami

[email protected] kirjoitti 21.1.2013 kello 22.29:

>  have never configured a system as hard as this combination, Jenkins (1.499), 
> Git (1.8.0.msysgit.0), and Windows 7 32 bit. I have been stumped for three 
> days, did not make any progress. I have been googling crazily and all the 
> answers found here and there seemed to help me a little, ex: no space for Git 
> home. In Jenkins, for Git installation it is C:\Git\cmd\gitk.cmd, notice, 
> there is no space in the path (I reinstalled Git from Program Files\Git to 
> C:\Git to get rid of the space issue). My repository is a private one, so I 
> need to use an SSH protocol. I am able to do this git command in a command 
> line using my Windows account: git clone [email protected]:mygitproject.git. I 
> have C:/Users/myaccount/.ssh/known_hosts, id_rsa, and id_rsa.pub. Since my 
> Jenksin is a Windows service, it runs under Local System Account, but the 
> known_hosts was generated when I logged in Windows using my Windows account, 
> so I thought I needed to change the Jenkins running user to my Windows 
> account and I did it. However nothing seems working.
>  
> When I try to build a job from a remote private Github repository, I get this 
> exception:
>  
> Started by user anonymous
> Building in workspace C:\Jenkins\workspace\Test
> Checkout:Test / C:\Jenkins\workspace\Test - hudson.remoting.LocalChannel@6846c
> Using strategy: Default
> Cloning the remote Git repository
> Cloning repository [email protected]:stewardconnect/CARE.git
> git --version
> Process leaked file descriptors. See 
> http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for 
> more information
> ERROR: Failed to clean the workspace
> java.io.IOException: Unable to delete C:\Jenkins\workspace\Test
> at hudson.Util.deleteFile(Util.java:243)
> at hudson.Util.deleteRecursive(Util.java:293)
> at hudson.FilePath$11.invoke(FilePath.java:983)
> at hudson.FilePath$11.invoke(FilePath.java:981)
> at hudson.FilePath.act(FilePath.java:852)
> at hudson.FilePath.act(FilePath.java:825)
> at hudson.FilePath.deleteRecursive(FilePath.java:981)
> at hudson.plugins.git.GitAPI.clone(GitAPI.java:241)
> at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044)
> at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986)
> at hudson.FilePath.act(FilePath.java:852)
> at hudson.FilePath.act(FilePath.java:825)
> at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986)
> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142)
> at hudson.model.AbstractProject.checkout(AbstractProject.java:1325)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682)
> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587)
> at hudson.model.Run.execute(Run.java:1543)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:236)
> ERROR: Error cloning remote repo 'origin' : Failed to delete workspace
> hudson.plugins.git.GitException: Failed to delete workspace
> at hudson.plugins.git.GitAPI.clone(GitAPI.java:244)
> at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1044)
> at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:986)
> at hudson.FilePath.act(FilePath.java:852)
> at hudson.FilePath.act(FilePath.java:825)
> at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:986)
> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1142)
> at hudson.model.AbstractProject.checkout(AbstractProject.java:1325)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:682)
> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
> at 
> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:587)
> at hudson.model.Run.execute(Run.java:1543)
> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:236)
> Caused by: java.io.IOException: Unable to delete C:\Jenkins\workspace\Test
> at hudson.Util.deleteFile(Util.java:243)
> at hudson.Util.deleteRecursive(Util.java:293)
> at hudson.FilePath$11.invoke(FilePath.java:983)
> at hudson.FilePath$11.invoke(FilePath.java:981)
> at hudson.FilePath.act(FilePath.java:852)
> at hudson.FilePath.act(FilePath.java:825)
> at hudson.FilePath.deleteRecursive(FilePath.java:981)
> at hudson.plugins.git.GitAPI.clone(GitAPI.java:241)
> ... 14 more
> Trying next repository
> ERROR: Could not clone repository
> FATAL: Could not clone
> hudson.plugins.git.GitException: Could not clone
>  
> I don't know why Jenkins spawns a child process to build my job, then it 
> can't delete the workspace, then it can't clone the repository. I don't know 
> which one is the root cause.
>  
> Any help will be greatly appreciated.
>  
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to