Thanks Mark for your help. I can see the bin directory in the path specified. Please find attached the screenshot.
On Sunday, February 14, 2016 at 12:12:34 PM UTC+11, Mark Waite wrote: > > The exception says "The system cannot find the file specified". That > usually would indicate that your PATH is not set to include the git.exe > program. > > You said that your PATH is set correctly, but didn't include the value of > the PATH as seen by the Jenkins job. You can see that value by creating a > job which runs a Windows batch build step and performs "ECHO %PATH%" > > If you chose Windows defaults for your installation of git on your Windows > machine, it should be in C:\Program Files\Git\bin\git.exe . Set that as > the git path in the node configuration, or assure that C:\Program > Files\Git\bin is in your PATH. > > Mark Waite > > On Sat, Feb 13, 2016 at 4:13 PM ramagopr <[email protected] > <javascript:>> wrote: > >> Hi , I am trying to do my first build in Jenkins using git as the source >> control. Just a simple "HelloWorld.java". Getting the following error. >> Can't comprehend why. I have got my "%PATH%" correct. But still this thing >> doesn't work. Kindly help. >> >> Started by user anonymous <http://localhost:8080/user/null> >> Building in workspace C:\Users\DELL\.jenkins\jobs\Helloworld\workspace >> > git.exe rev-parse --is-inside-work-tree # timeout=10 >> ERROR: Workspace has a .git repository, but it appears to be >> corrupt.hudson.plugins.git.GitException >> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>: >> Error performing command: git.exe rev-parse --is-inside-work-tree >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1717) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1686) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1682) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1312) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1324) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepo(CliGitAPIImpl.java:195) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepo&entity=method> >> at hudson.plugins.git.GitAPI.hasGitRepo(GitAPI.java:232) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitAPI.hasGitRepo&entity=method> >> at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:998) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method> >> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1053) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method> >> at hudson.scm.SCM.checkout(SCM.java:485) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.scm.SCM.checkout&entity=method> >> at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method> >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) >> >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method> >> at >> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) >> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method> >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) >> >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method> >> at hudson.model.Run.execute(Run.java:1738) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method> >> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method> >> at hudson.model.ResourceController.execute(ResourceController.java:98) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method> >> at hudson.model.Executor.run(Executor.java:410) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method> >> Caused by: java.io.IOException >> <http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>: Cannot >> run program "git.exe" (in directory >> "C:\Users\DELL\.jenkins\jobs\Helloworld\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:815) >> at hudson.Launcher$ProcStarter.start(Launcher.java:381) >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1706) >> ... 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 >> Cloning the remote Git repository >> Cloning repository https://github.com/ramagopr1/programs >> > git.exe init C:\Users\DELL\.jenkins\jobs\Helloworld\workspace # timeout=10 >> ERROR: Error cloning remote repo 'origin'hudson.plugins.git.GitException >> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>: >> Could not init C:\Users\DELL\.jenkins\jobs\Helloworld\workspace >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:656) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:463) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute&entity=method> >> at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1013) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method> >> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1053) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method> >> at hudson.scm.SCM.checkout(SCM.java:485) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.scm.SCM.checkout&entity=method> >> at hudson.model.AbstractProject.checkout(AbstractProject.java:1276) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method> >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) >> >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method> >> at >> jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) >> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method> >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) >> >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method> >> at hudson.model.Run.execute(Run.java:1738) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method> >> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method> >> at hudson.model.ResourceController.execute(ResourceController.java:98) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method> >> at hudson.model.Executor.run(Executor.java:410) >> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method> >> Caused by: hudson.plugins.git.GitException >> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>: >> Error performing command: git.exe init >> C:\Users\DELL\.jenkins\jobs\Helloworld\workspace >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1717) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1686) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1682) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1312) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand&entity=method> >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:654) >> >> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute&entity=method> >> ... 12 more >> Caused by: java.io.IOException: Cannot run program "git.exe" (in directory >> "C:\Users\DELL\.jenkins\jobs\Helloworld\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:815) >> at hudson.Launcher$ProcStarter.start(Launcher.java:381) >> at >> org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1706) >> ... 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: nullFinished >> <http://stacktrace.jenkins-ci.org/search?query=Finished>: FAILURE >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Jenkins Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/80953aa9-86c1-4dd0-a324-0a208638ae5c%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jenkinsci-users/80953aa9-86c1-4dd0-a324-0a208638ae5c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/be8dccfc-1fba-42e0-a107-84c1315aaedc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
