[JIRA] [git-plugin] (JENKINS-34878) jenkins failed to connect to Git repository

11 views
Skip to first unread message

munira.presswala@accenture.com (JIRA)

unread,
May 17, 2016, 7:25:01 AM5/17/16
to jenkinsc...@googlegroups.com
Munira Presswala created an issue
 
Jenkins / Bug JENKINS-34878
jenkins failed to connect to Git repository
Issue Type: Bug Bug
Assignee: Mark Waite
Attachments: Git_repository_exception_jenkins.png
Components: git-plugin
Created: 2016/May/17 11:24 AM
Environment: Git Parameter Plugin -0.50 , Git Plgin- 2.4.4 and Git-Client_pugin - 1.19.6
Labels: git jenkins slave plugins build
Priority: Blocker Blocker
Reporter: Munira Presswala

when I ran my build I receive following exception in Jenkins console

Started by user anonymous

[EnvInject] - Loading node environment variables.

Building in workspace C:\Program Files (x86)\Jenkins\BWorkspace

Cloning the remote Git repository

Cloning repository http://frntraltdvm37.devaltair.edc.publicisgroupe.net/Bonobo.Git.Server/Repository/WebUI_PG

 > git.exe init
C:\Program Files (x86)\Jenkins\BWorkspace # timeout=10

ERROR: Error cloning remote repo 'origin'

hudson.plugins.git.GitException: Could not init C:\Program Files (x86)\Jenkins\BWorkspace

        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:656)

        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:463)

        at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1057)

        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)

        at hudson.scm.SCM.checkout(SCM.java:485)

        at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)

        at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)

        at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)

        at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)

        at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134)

        at hudson.model.Run.execute(Run.java:1738)

        at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)

        at hudson.model.ResourceController.execute(ResourceController.java:98)

        at hudson.model.Executor.run(Executor.java:410)

Caused by: hudson.plugins.git.GitException: Error performing command: git.exe init C:\Program Files
(x86)\Jenkins\BWorkspace

        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1726)

        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1695)

        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1691)

        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1321)

        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:654)

        ... 13 more

Caused by: java.io.IOException: Cannot run program
"git.exe" (in directory "C:\Program Files
(x86)\Jenkins\BWorkspace"): CreateProcess error=2, The system cannot find
the file specified

        at
java.lang.ProcessBuilder.start(Unknown Source)

        at
hudson.Proc$LocalProc.<init>(Proc.java:244)

        at
hudson.Proc$LocalProc.<init>(Proc.java:216)

        at
hudson.Launcher$LocalLauncher.launch(Launcher.java:815)

        at
hudson.Launcher$ProcStarter.start(Launcher.java:381)

        at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1715)

        ... 17 more

Caused by: java.io.IOException: CreateProcess error=2, The
system cannot find the file specified

        at
java.lang.ProcessImpl.create(Native Method)

        at
java.lang.ProcessImpl.<init>(Unknown Source)

        at
java.lang.ProcessImpl.start(Unknown Source)

        ... 23 more

ERROR: null

 

Also Im unable to connect to Git Repository , it giving me following error, Please refer attachment.

We are using Bonobo git server ,which doesn't requires SSH to configure.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

mark.earl.waite@gmail.com (JIRA)

unread,
May 17, 2016, 10:13:06 AM5/17/16
to jenkinsc...@googlegroups.com
Mark Waite resolved as Not A Defect
 

Please don't use bug reports to request help with configuration problems. There are very few people who read the bug reports, and many more who read the Jenkins users mailing list.

Please ask questions like this on the mailing list so that more people than the plugin maintainer can assist with the answer.

In this case, you probably don't have the location of your git program configured correctly.

You may also want to consider placing your Jenkins HOME directory in a path which does not include spaces. There are a number of programs and plugins which may struggle with spaces in the path to the Jenkins home directory.

Change By: Mark Waite
Status: Open Resolved
Resolution: Not A Defect

munira.presswala@accenture.com (JIRA)

unread,
May 18, 2016, 12:58:02 AM5/18/16
to jenkinsc...@googlegroups.com
Munira Presswala commented on Bug JENKINS-34878
 
Re: jenkins failed to connect to Git repository

Hi Mark ,

Thank you for providing quick resolution . Could you Please help me in knowing what could be the correct reason behind getting this exception.

Is that git plugin upgraded automatically or there is some change in Folder structure of Git .

Also could you Please explain me , how Jenkins works when I push a small change to Git ,

Thanks for all your answers in advanced

munira.presswala@accenture.com (JIRA)

unread,
May 18, 2016, 1:04:01 AM5/18/16
to jenkinsc...@googlegroups.com

Hi Mark ,

I have already check my JENKINS_HOME is correctly set .

Could you Please suggest me , what should be ideal location of Git program.

do Jenkins require Git to be installed Separately , As per my knowledge I didnt install Git previously , Git used to install in Jenkins automatically .So , why its not happening Now .

could you Please suggest the above case.

munira.presswala@accenture.com (JIRA)

unread,
May 18, 2016, 1:30:01 AM5/18/16
to jenkinsc...@googlegroups.com
Munira Presswala reopened an issue
 

hi Mark ,

Reopening this issue , because i have asked you some questions ,and its not resolved the case .

So Please assist me further .

Thanks and Regards
Munira

Change By: Munira Presswala
Resolution: Not A Defect
Status: Resolved Reopened

mark.earl.waite@gmail.com (JIRA)

unread,
May 18, 2016, 2:06:02 AM5/18/16
to jenkinsc...@googlegroups.com
Mark Waite resolved as Not A Defect
 

Munira Presswala I'm sorry, but I won't use a bug report as a place for questions and answers. Please ask your questions on the Jenkins user mailing list where more people can assist with the answers.

Please do not reopen this report. It is not a bug. It is a user having configuration problems.

Change By: Mark Waite
Status: Reopened Resolved
Resolution: Not A Defect

mark.earl.waite@gmail.com (JIRA)

unread,
May 18, 2016, 2:09:01 AM5/18/16
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned
Change By: Mark Waite
Assignee: Mark Waite

mark.earl.waite@gmail.com (JIRA)

unread,
May 18, 2016, 2:22:03 AM5/18/16
to jenkinsc...@googlegroups.com
Mark Waite updated an issue
when I ran my build I receive following exception in Jenkins console


{noformat}
Started by user anonymous
the file  specified  specifiedat

        at
java.lang.ProcessBuilder.start(Unknown Source)

       
 at
hudson.Proc$LocalProc.<init>(Proc.java:244)


       
 at
hudson.Proc$LocalProc.<init>(Proc.java:216)


       
 at
hudson.Launcher$LocalLauncher.launch(Launcher.java:815)


        at
hudson.Launcher$ProcStarter.start(Launcher.java:381)


        at
org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1715)


        ... 17 more

Caused by: java.io.IOException: CreateProcess error=2, The
system cannot find the file specified


        at
java.lang.ProcessImpl.create(Native Method)


        at
java.lang.ProcessImpl.<init>(Unknown Source)


        at
java.lang.ProcessImpl.start(Unknown Source)


        ... 23 more

ERROR: null
{noformat}
 

Also  Im  I'm  unable to connect to Git Repository , it giving me following error, Please refer attachment.

We are using Bonobo git server ,which doesn't requires SSH to configure.

Reply all
Reply to author
Forward
0 new messages