Jenkins + GitHun issue

94 views
Skip to first unread message

s s

unread,
Feb 28, 2012, 6:51:19 AM2/28/12
to Jenkins Users
I am receiving following error while integration Jenkins with Github.
I have following all steps mentioned in http://help.github.com/mac-set-up-git/
and stillreceving this error. Please advise.

Using strategy: Default
Checkout:workspace / C:\Program Files\Jenkins\jobs\abcd\workspace -
hudson.remoting.LocalChannel@1f12373
Cloning the remote Git repository
Cloning repository files-plugin
Error trying to determine the git version: Error performing command:
C:/msysgit/msysgit/bin/git.exe --version
Command "C:/msysgit/msysgit/bin/git.exe --version" returned status
code -1073741515:
Assuming 1.6
ERROR: Error cloning remote repo 'files-plugin' : Could not clone
g...@github.com:arrk/grails-files-plugin.git
hudson.plugins.git.GitException: Could not clone g...@github.com:arrk/
grails-files-plugin.git
at hudson.plugins.git.GitAPI.clone(GitAPI.java:245)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1029)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:970)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:970)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
at hudson.model.AbstractBuild
$AbstractRunner.checkout(AbstractBuild.java:576)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:
465)
at hudson.model.Run.run(Run.java:1409)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:
88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: hudson.plugins.git.GitException: Error performing command:
C:/msysgit/msysgit/bin/git.exe clone -o files-plugin
g...@github.com:arrk/grails-files-plugin.git C:\Program Files\Jenkins
\jobs\abcd\workspace
Command "C:/msysgit/msysgit/bin/git.exe clone -o files-plugin
g...@github.com:arrk/grails-files-plugin.git C:\Program Files\Jenkins
\jobs\abcd\workspace" returned status code -1073741515:
at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:776)
at hudson.plugins.git.GitAPI.access$000(GitAPI.java:38)
at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:241)
at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:221)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.git.GitAPI.clone(GitAPI.java:221)
... 12 more
Caused by: hudson.plugins.git.GitException: Command "C:/msysgit/
msysgit/bin/git.exe clone -o files-plugin g...@github.com:arrk/grails-
files-plugin.git C:\Program Files\Jenkins\jobs\abcd\workspace"
returned status code -1073741515:
at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:771)
... 18 more
Trying next repository
ERROR: Could not clone repository
FATAL: Could not clone
hudson.plugins.git.GitException: Could not clone
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1041)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:970)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:970)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
at hudson.model.AbstractBuild
$AbstractRunner.checkout(AbstractBuild.java:576)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:
465)
at hudson.model.Run.run(Run.java:1409)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:
88)
at hudson.model.Executor.run(Executor.java:238)

Vojtech Juranek

unread,
Feb 28, 2012, 7:33:48 AM2/28/12
to jenkins...@googlegroups.com
Hi,
this doesn't looks like Jenkins issue, it's more likely some problem in your
git setup. Are you able to run successfully following command manually?

Vojtech Juranek

unread,
Feb 28, 2012, 7:40:14 AM2/28/12
to jenkins...@googlegroups.com
> Hi,
> this doesn't looks like Jenkins issue, it's more likely some problem in
> your git setup. Are you able to run successfully following command
> manually?

send too early:-) Are you able to run this command manually?

Sami Tikka

unread,
Feb 28, 2012, 3:52:49 PM2/28/12
to jenkins...@googlegroups.com
3 things that come to mind:

1 - Based on the path names in the log it seems you are on windows.
Maybe the instructions on http://help.github.com/win-set-up-git/ are
more helpful to you?

2 - You are probably using Windows XP. I have heard the Jenkins
Windows installer is buggy on Windows XP in such a way that it sets up
Jenkins to use %PROGRAMFILES%\Jenkins as the JENKINS_HOME directory.
You should try to set JENKINS_HOME environment variable for the
Jenkins service and point it to some directory that is writable by the
account Jenkins is running as. Or ignore the Windows installer,
download jenkins.war and run it in a Command Prompt window using "java
-jar jenkins.war"

3 - Check that git works outside of Jenkins.

-- Sami

2012/2/28 s s <sssa...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages