Hi,
I am using cruise control for my continuos builds. Here is my problem.
This is the content of the buildfile that gets called from config.xml of the cruise control.
<project name="projectNJ" default="build" basedir="F:\NJ4.5\projectNJdev">
<target name="build">
<cvs command="-q update -d -P -A -C -R"/>
<exec dir="." executable="cmd" os="Windows XP">
<arg line="/c buildall.bat RESET_DATABASE_BUILD RELEASE_BUILD"/>
</exec>
</target>
</project>
In my buildall.bat file I have calls to many xml files which needs to be executed.
e.g
oResetDatabaseLite
if "%RESET_DATABASE_BUILD%" == "true" goto doResetDatabase
echo dblite on EJBServer
call build.bat dblite >> %PROJ_DIR%/buildall.log
if errorlevel==1 goto BUILD_FAILED
:BUILD_SUCCESS
echo .
echo Build Successfully Completed
echo . >> %PROJ_DIR%/buildall.log
echo Build Successfully Completed
>> %PROJ_DIR%/buildall.log
goto end
:BUILD_FAILED
echo .
echo Build Failed - See errors
echo . >> %PROJ_DIR%/buildall.log
echo Build Failed - See errors
>> %PROJ_DIR%/buildall.log
goto end
:End
cd %PROJ_DIR%
echo .
echo Build Over
echo . >> %PROJ_DIR%/buildall.log
echo Build Over >> %PROJ_DIR%/buildall.log
Here even if "build.bat dblite" call fails, My cruise control sends out a mail saying that "the build is successful" . Can you please suggest me what is that I am doing wrong or how to make the cruise control give me the correct message.
Please help
- Roshan