build failed due to git.exe is not configured

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Started by user anonymous
      Building in workspace C:\Program Files (x86)\Jenkins\jobs\demoTest\workspace
      No JDK named ‘null’ found
      No JDK named ‘null’ found
      Cloning the remote Git repository
      Cloning repository https://github.com/himanshukgit/demoTest.git
      > git.exe init C:\Program Files (x86)\Jenkins\jobs\demoTest\workspace # timeout=10
      ERROR: Error cloning remote repo 'origin'
      hudson.plugins.git.GitException: Could not init C:\Program Files (x86)\Jenkins\jobs\demoTest\workspace
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$4.execute(CliGitAPIImpl.java:606)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:462)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1003)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1043)
      at hudson.scm.SCM.checkout(SCM.java:485)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1275)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
      at hudson.model.Run.execute(Run.java:1741)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      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\jobs\demoTest\workspace
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1647)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1616)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1612)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1254)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$4.execute(CliGitAPIImpl.java:604)
      ... 12 more
      Caused by: java.io.IOException: Cannot run program "git.exe" (in directory "C:\Program Files (x86)\Jenkins\jobs\demoTest\workspace"): 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:816)
      at hudson.Launcher$ProcStarter.start(Launcher.java:382)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1636)
      ... 16 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)
      ... 22 more
      ERROR: null
      Finished: FAILURE

            Assignee:
            Unassigned
            Reporter:
            himanshu k
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: