ERROR: Error cloning remote repo 'origin'

I am trying to configure a Git project in Jenkins using the Git plugin.

In the ‘Manage Jenkins’ page I enter repository URL in the Git configuration.

  • Android source code git download error
  • Error building trees error prevents committing to branch
  • git push using PuTTY on Windows fails (fatal: The remote end hung up unexpectedly)
  • Autocreate directories when building
  • Creating GitHub repository with only a subset of a local repository's history
  • git add -p --ignore-submodules?
  • However when I’m building the project I get the following error:

    ERROR: Error cloning remote repo 'origin'
    hudson.plugins.git.GitException: Could not init C:\Users\m.kothamasu\.jenkins\jobs\gvp web\workspace
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$4.execute(
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(
        at hudson.plugins.git.GitSCM.retrieveChanges(
        at hudson.plugins.git.GitSCM.checkout(
        at hudson.model.AbstractProject.checkout(
        at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(
        at jenkins.scm.SCMCheckoutStrategy.checkout(
        at hudson.model.AbstractBuild$
        at hudson.model.Run.execute(
        at hudson.model.ResourceController.execute(
    Caused by: hudson.plugins.git.GitException: Error performing command: C:\Users\m.kothamasu\GIT init C:\Users\m.kothamasu\.jenkins\jobs\gvp web\workspace
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$4.execute(
        ... 11 more
    Caused by: Cannot run program "C:\Users\m.kothamasu\GIT" (in directory "C:\Users\m.kothamasu\.jenkins\jobs\gvp web\workspace"): CreateProcess error=5, Access is denied
        at java.lang.ProcessBuilder.start(
        at hudson.Proc$LocalProc.<init>(
        at hudson.Proc$LocalProc.<init>(
        at hudson.Launcher$LocalLauncher.launch(
        at hudson.Launcher$ProcStarter.start(
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
        ... 15 more
    Caused by: CreateProcess error=5, Access is denied
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(
        at java.lang.ProcessImpl.start(
        at java.lang.ProcessBuilder.start(
        ... 20 more

  • How to change git shell's start directory in windows 7
  • Approximation of the length of the decimal representation of a type
  • How to know if git repository has changes that have not been synchronized with server (origin)?
  • Can I version a path in git whose name is operating system dependent
  • Moving git submodule to another directory within the same repository
  • How do I make Hudson/Jenkins fail if Sonar thresholds are breached?
  • 2 Solutions collect form web for “ERROR: Error cloning remote repo 'origin'”

    Check that you did specify the git executable in your Jenkins Git plugin configuration:

    C:\Users\m.kothamasu\GI doesn’t look like an exe.

    That would be similar to JENKINS-6181 (which was about perforce, but the idea remains the same).

    Check also JENKINS-12353, to make sure <git/bin> is in your PATH.

    you can set Git location in Jenkins server/node configuration:

    goto Configure, under section Node Properties mark checkbox Tools Location and set yours path to Git.

    Git Baby is a git and github fan, let's start git clone.