how to make a build failed in hudson using batch command

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

how to make a build failed in hudson using batch command

sudheshna
Hi,

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

@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 >> result.txt
)

set ERRORLEVEL=%HTMLVAL_ERROR%

POPD


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.

Any help is appreciated.

Thanks in Advance
Sudheshna K