Tuesday, August 11, 2009

Siebel Full Compile

The following commands can be used to automate the Siebel Fullcompile.
Copy the commands and paste it in a notepad/wordpad and save the file as a Batch File. eg. Compile.bat

Use the Windows Scheduler to run the file everyday/everyweek.

SET USERNAME=SADMIN
SET PASSWORD=password
SET CFGFILE=E:\sea752\tools\bin\ENU\tools.cfg
SET DATASOURCE=ServerDataSrc
SET SRFPATH=E:\ENU\siebel.srf
SET SIEBELHOME=E:\Sea752\siebsrvr
SET BSCRIPTPATH=E:\BSCRIPT
SET ENTSRVR=ENTSERVER
SET SBSRVR=SBLSERVER
SET FullCompilelog=FullCompilelogENU.txt

:compile
ECHO Full Compile Started and the srf file path is %SRFPATH% >> %FullCompilelog%
E:\Sea752\tools\bin\siebdev.exe /c %CFGFILE% /d %DATASOURCE% /u %USERNAME% /p %PASSWORD% /bc "Siebel Repository" %SRFPATH% /tl CHS (ECHO Error compiling tools in %SRFPATH%\%SRFNAME% ) >> %FullCompilelog%
Echo Full compile complete >> %FullCompilelog%

call NOW.EXE >> %FullCompilelog%
ECHO Genbscript Started.. >> %FullCompilelog%
ECHO Genbscript Started..
%SIEBELHOME%\bin\genbscript %SIEBELHOME%\BIN\ENU\siebelCHS.cfg %BSCRIPTPATH% CHS (ECHO Error generating bscript.) >> %FullCompilelog%
GOTO Success
:Failure
ECHO AN ERROR OCCURRED! FullCompileCHS.cmd HAS ABORTED!
ERR 1
GOTO End
:Success
ECHO Successfully Compiled %SRFNAME% in the folder %SRFPATH%. >> %FullCompilelog%
ERR 0
GOTO End
:End
@ENDLOCAL

No comments: