Jenkins checks the exit code. Run your batch file and try echo %errorlevel%
Your batch file needs to exit with a non 0 code, i.e. exit 1 Be aware jenkins can only check the errorlevel left by the last command so the following will succeed because the echo returns 0 somebadcommand echo hello Hope that helps On Wednesday, May 1, 2013 10:59:26 AM UTC+12, rakhee Kulkarni wrote: > > All, > > I have build running on a windows slave which gets launched by a windows > batch file. if the builds fail I do not see Jenkins catching the error. > Please advise. > > Thanks, > Rakhee > > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
