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

jenkins-ci.org | 3 months ago
  1. 0

    when I ran my build I receive following exception in Jenkins console {noformat} 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 specifiedat 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 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.

    Jenkins JIRA | 7 months ago | Munira Presswala
    hudson.plugins.git.GitException: Could not init C:\Program Files (x86)\Jenkins\BWorkspace
  2. 0

    when I ran my build I receive following exception in Jenkins console {noformat} 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 specifiedat 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 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.

    Jenkins JIRA | 7 months ago | Munira Presswala
    hudson.plugins.git.GitException: Could not init C:\Program Files (x86)\Jenkins\BWorkspace
  3. 0

    [JENKINS-34878] jenkins failed to connect to Git repository - Jenkins JIRA

    jenkins-ci.org | 3 months ago
    hudson.plugins.git.GitException: Could not init C:\Program Files (x86)\Jenkins\BWorkspace
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

    Google Groups | 7 months ago | munira.p...@accenture.com (JIRA)
    hudson.plugins.git.GitException: Could not init C:\Program Files (x86)\Jenkins\BWorkspace
  6. 0

    Does not clone repositories when `.git` is at the end (404)

    GitHub | 2 years ago | lwhiteley
    hudson.plugins.git.GitException: Failed to connect to https://github.com/medullan/mean.git/ (status = 404)

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Error performing command: git.exe init C:\Program Files (x86)\Jenkins\BWorkspace

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$2.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1726)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1695)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1691)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1321)
      5. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:654)
      6. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:463)
      6 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1057)
      2. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
      2 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SCM.checkout(SCM.java:485)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      3 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    6. Hudson
      AbstractBuild$AbstractBuildExecution.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      1 frame
    7. com.tikal.jenkins
      MultiJobBuild$MultiJobRunnerImpl.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:134)
      1 frame
    8. Hudson
      Run.execute
      1. hudson.model.Run.execute(Run.java:1738)
      1 frame
    9. com.tikal.jenkins
      MultiJobBuild.run
      1. com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:73)
      1 frame
    10. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:98)
      2. hudson.model.Executor.run(Executor.java:410)
      2 frames