The part of the stack trace that mentions unix process leads me to think you might be running Jenkins on a unix computer. If that is the case, you cannot execute a windows batch script.
If you really want to build on windows, you need to set up a slave on a windows computer and in the job configuration restrict the job to run only on the windows slave. -- Sami Steve Berg <steven.b...@verizon.com> kirjoitti 5.6.2012 kello 21.21: > Where can I find how to understand the Console Output from a Jenkins build? > I have this: > > Started by timer > Building in workspace /var/lib/jenkins/jobs/TestingJenkins/workspace > Updating https://lstf.vzbi.com/svn/repos/mis/TeamForge/JenkinsTest > At revision 2029 > no change for https://lstf.vzbi.com/svn/repos/mis/TeamForge/JenkinsTest since > the previous build > [workspace] $ cmd /c call /tmp/hudson32454.bat > FATAL: command execution failed > java.io.IOException: java.io.IOException: cmd: not found > at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) > at java.lang.ProcessImpl.start(ProcessImpl.java:65) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:451) > at hudson.Proc$LocalProc.<init>(Proc.java:244) > at hudson.Proc$LocalProc.<init>(Proc.java:216) > at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) > at hudson.Launcher$ProcStarter.start(Launcher.java:338) > at hudson.Launcher$ProcStarter.join(Launcher.java:345) > at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:82) > at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:58) > at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > at > hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710) > at hudson.model.Build$RunnerImpl.build(Build.java:178) > at hudson.model.Build$RunnerImpl.doRun(Build.java:139) > at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:480) > at hudson.model.Run.run(Run.java:1438) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > at hudson.model.ResourceController.execute(ResourceController.java:88) > at hudson.model.Executor.run(Executor.java:239) > Build step 'Execute Windows batch command' marked build as failure > Sending e-mails to: ... > ERROR: Could not connect to SMTP host: localhost, port: 25 > javax.mail.MessagingException: Could not connect to SMTP host: localhost, > port: 25; > nested exception is: > java.net.SocketTimeoutException: connect timed out > at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934) > at > com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638) > at javax.mail.Service.connect(Service.java:295) > at javax.mail.Service.connect(Service.java:176) > at javax.mail.Service.connect(Service.java:125) > at javax.mail.Transport.send0(Transport.java:194) > at javax.mail.Transport.send(Transport.java:124) > at hudson.tasks.MailSender.execute(MailSender.java:114) > at hudson.tasks.Mailer.perform(Mailer.java:111) > at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) > at > hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:710) > at > hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:685) > at hudson.model.Build$RunnerImpl.post2(Build.java:162) > at > hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:632) > at hudson.model.Run.run(Run.java:1463) > at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) > at hudson.model.ResourceController.execute(ResourceController.java:88) > at hudson.model.Executor.run(Executor.java:239) > Caused by: java.net.SocketTimeoutException: connect timed out > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) > at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) > at java.net.Socket.connect(Socket.java:519) > at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:286) > at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231) > at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900) > ... 17 more > Finished: FAILURE