how to make a build failed in hudson using batch command
Im not sure whether I posted this under correct category.
Im using Hudson for our HTML build main reason for using CI is to validate the html files during each files with cse validator. For validating the HTML I have used the following code
For %%X in (*.html) do (
"C:\Program Files\HTMLValidator100\cmdlineprocessor" -outputfile output.txt -r1 %%X
type output.txt >> result.txt
Validation process is working fine but even there is an error in the HTML file hudson is not triggering the build as failed, its always Success.
Please let me know how can I trigger the build failure from batch command.