title: how to make a build failed in hudson using batch command
body: <p>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</p>
  
  <pre><code>@echo off
  
  PUSHD "F:\Solutions\Documents\Design\html\ValTest"
  For %%X in (*.html) do (
  "C:\Program Files\HTMLValidator100\cmdlineprocessor"  -outputfile output.txt   -r1 %%X
  set HTMLVAL_ERROR=%ERRORLEVEL%
  type output.txt &gt;&gt; result.txt
  )
  
      set ERRORLEVEL=%HTMLVAL_ERROR%
  
  POPD
  </code></pre>
  
  <p>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.</p>
  
  <p>Please let me know how can I trigger the build failure from batch command. </p>