You need to install ant on that computer. Jenkins can do that for you. Use a Google search for the video "Jenkins in five minutes". It will show you how to configure automatic install of ant.
On Sun, Feb 14, 2016, 12:14 AM ramagopr <[email protected]> wrote: > Hi Mark, > > Now i get an error in the unit test step using ANT. > > [22] $ cmd.exe /C '"ant.bat -file build.xml NewHome && exit %%ERRORLEVEL%%"' > 'ant.bat' is not recognized as an internal or external command, > operable program or batch file. > Build step 'Invoke Ant' marked build as failure > Recording test results > ERROR: Step ‘Publish JUnit test result report’ failed: No test report files > were found. Configuration error?Finished > <http://stacktrace.jenkins-ci.org/search?query=Finished>: FAILURE > > > On Sunday, February 14, 2016 at 1:11:47 PM UTC+11, ramagopr wrote: >> >> Thanks a ton Mark. I changed the path to include the git executable as >> suggested by you and it worked. >> >> all success now. >> >> regards, >> Ram >> >> On Sunday, February 14, 2016 at 1:04:58 PM UTC+11, Mark Waite wrote: >>> >>> You listed the directory which contains the git program (C:\Program >>> Files\Git\bin) rather than the path to the git program (C:\Program >>> Files\Git\bin\git.exe). At least, the output of the command says that it >>> is trying to execute "C:\Program Files\Git\bin" as though it were a program. >>> >>> Mark Waite >>> >>> On Sat, Feb 13, 2016 at 6:58 PM ramagopr <[email protected]> wrote: >>> >>>> Hi Mark, >>>> >>>> I changed the system configuration to include the path. Now i get an >>>> "access denied" error. >>>> Please find attached the screenshot. >>>> >>>> >>>> >>>> On Sunday, February 14, 2016 at 10:13:07 AM UTC+11, ramagopr 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]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jenkinsci-users/da992432-b1ea-42e5-823f-3d41c06eeebf%40googlegroups.com >>>> <https://groups.google.com/d/msgid/jenkinsci-users/da992432-b1ea-42e5-823f-3d41c06eeebf%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/ae7681b4-0b6f-4a9e-bcd4-1cf188ab8a81%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/ae7681b4-0b6f-4a9e-bcd4-1cf188ab8a81%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/CAO49JtF4JZ2c3F8BMMbp6TYk37MVUDNz%2BjxBdqKTRxoC2YuUOw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
