We call deploy scripts(cmd files) through our own make xml files from cruisecontrol. In the deploy CMD files there is error level return explicitly mentioned. But still cruise control does not catch the errors. Logs show it as failed but reports sucessfull. Below is how we call deploy scripts.
1. from cruisecontrol config.xml we call our own xml file like below
2. and that mybuild.xml content is as below
<exec dir="V:\xxx\xxx\xxx" executable="cmd.exe" output="checkETSApps.txt">
<arg line="/c deploy.cmd"/>
3. and deploy.cmd content is as below
call deploybackend.cmd(this telnets with servers)
IF ERRORLEVEL 1 EXIT /B 1
What are we missing here. Please advise.