RTC command line interface / integration with Siebel
Matt Morgan (6●1)
| asked Sep 15 '09, 11:53 a.m.
retagged Dec 03 '13, 3:49 p.m. by David Lafreniere (4.8k●7)
Hi all,
We're considering integrating RTC with Siebel; Siebel works with SCM's via a command line/DOS batch file - managing object locking and checkin/out itself, just providing a hook via the batch file into a source control tool during checkin. As such, in order for an SCM to work with Siebel the application needs to have a command line interface which Siebel can call when checking items in, these items are just text files, which then get stored in the source control app. RTC looks like a great tool, but I can't find any reference to a command line tool (except to IBM i which I think is a mainframe app?). Does anyone know if there's an option of running RTC from the command line in a Windows environment? Thanks, Matt |
5 answers
Andrew Hoo (1.0k●1)
| answered Sep 16 '09, 11:10 a.m.
JAZZ DEVELOPER edited Oct 12 '15, 9:46 p.m. by Geoffrey Clemm (30.1k●3●30●35)
The SCM command line is located at:
/jazz/scmtools/eclipse The help doc is here: http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.scm.doc/topics/c_scm_cli.html Comments Perfect, thanks Andrew.
Matt, did you have any success with this integration? Matt, did you have any success with this integration?
Matt, did you have any success with this integration?
|
I have created a full-function batch file integrating Siebel with RTC; it provides for file or directory checkins, adding comments, associating workitems, etc. It allows certain constants to be set while prompting for other values as necessary - dependent on the flags you set within the batch file itself. It also works around the lack of a checkout concept within RTC, the automatic deletion of the sif files by Siebel, and allows you to maintain a history.
To do all that, it relies on some advanced batch file techniques which were a joy to troubleshoot along with discovering the various "gotchas" both Siebel and RTC surprised me with. (Hint of sarcasm) I hope to demonstrate it as part of Innovate 2011 and elaborate how it is easily used (at great benefit) even when Siebel is not involved - as a standalone utility. Comments Hello Robert,
Hi Robert,
Hi,
Kevin Lou
commented Nov 13 '13, 10:54 a.m.
Hi Robert,
Thanks,
Kev
Hello ,
Hi Robert,
Is there a chance you can share the batch file you created for Siebel - RTC integration with me?
Thanks
Talal Ul Haq
Hi Robert,
Hi Robert,
Even a 2-3 year old idea is still useful. Can you share the Siebel script please?
Tim
showing 5 of 8
show 3 more comments
|
I am trying to write a batch file to integrate the Siebel with RTC using SCM CLI. Here is how I think it should work:
For action checkout:
1. scm accept
2. scm load
3. scm lock acquire
For action checkin:
1. scm checkin (need to get the changeset uuid from the command output. Step 2 and 3 need this uuid.)
2. scm comment
3. scm changeset associate
4. scm deliver
5. scm lock release
I hope this will work for the Siebel development.
|
I have done this integration successfully with an insurance company, contact me if you need help.
Siebel provides batch file by name srcctrl.bat file.in this file, add SCM command line to check in the files into RTC repo.
This has to be done on all user machines working with Siebel.
Suresh.
smekala@himainc.com
|
Here is the script for all you out there, enjoy :-)
NOTE: lscm should be in developers machine path and reside on their machine, or put it on a shared drive and set it in their path.
@echo off
set SOFTWARE=lscm
set CHECKIN=%SOFTWARE% checkin
set CHECKOUT=%SOFTWARE% accept -v
set ADD=%SOFTWARE% checkin
set DELIVER=%SOFTWARE% deliver --overwrite-uncommitted
rem ==================================================================
rem =============== User defined parameters ================================
rem ==================================================================
PATH=RTC PATH to SCM Commands
set RTC_URL=https://svhvms006.himainc.com:9443/ccm/
rem RTC_REPOS=do-not-use
set SRC_USR=RTC userid-uid
set SRC_PSWD=yourpassword
set LOGFILE=D:\development\projects\rtcsiebel.log
set WORKING_DIR=RTC Workspace
rem LOGFILE SHOULD NOT HAVE SPACES IN ITS PATH
rem ==================================================================
rem ==================================================================
set OPTIONS=--username %SRC_USR% --password %SRC_PSWD% -v
set COMMENT=-F
set FILE=
echo %* >> %LOGFILE%
echo =======================Srcctrl.bat========================== >> %LOGFILE%
set ACTION=%1
shift
set DIR=%1
shift
set COMMENT=%COMMENT% %1
set COMMENT_FILE=%1
shift
set FILE=%1
SET DIR_NO_QUOTE=###%DIR%###
SET DIR_NO_QUOTE=%DIR_NO_QUOTE:"###=%
SET DIR_NO_QUOTE=%DIR_NO_QUOTE:###"=%
SET DIR_NO_QUOTE=%DIR_NO_QUOTE:###=%
if errorlevel 100 goto END
if %ACTION%==checkout goto CHECK_OUT
if %ACTION%==checkin goto CHECK_IN
:CHECK_OUT
echo ============Check out file %FILE% from Source Control System============ >> %LOGFILE%
echo Change local directory to %DIR% >> %LOGFILE%
chdir %DIR% >> %LOGFILE% 2>&1
echo Start checking out %FILE% from Source Control System >> %LOGFILE%
echo %CHECKOUT% %RTC_URL%/ %OPTIONS% "%WORKING_DIR%\%rtc_REPOS%" >> %LOGFILE%
lscm accept -v >> %LOGFILE% 2>&1
goto END
:CHECK_IN
echo ============Check in file %FILE% into Source Control System============ >> %LOGFILE%
echo Change local directory to %WORKING_DIR%\%RTC_REPOS% >> %LOGFILE%
chdir %WORKING_DIR% >> %LOGFILE% 2>&1
if exist %FILE% goto FILE_EXIST >> %LOGFILE% 2>&1
echo Copying %FILE% to local Working Copy Folder: %WORKING_DIR% >> %LOGFILE%
copy "%DIR_NO_QUOTE%%FILE%" "%WORKING_DIR%\%FILE%"
>> %LOGFILE% 2>&1
echo Add %FILE% in case it doesn't exist in Source Control System >> %LOGFILE%
echo %ADD% %WORKING_DIR%\%rtc_REPOS%\%FILE% %OPTIONS% >> %LOGFILE%
%ADD% %WORKING_DIR%\%FILE% >> %LOGFILE% 2>&1
goto COMMIT
:FILE_EXIST
echo Copying %FILE% to local Working Copy Folder: %WORKING_DIR% >> %LOGFILE%
echo copy "%DIR_NO_QUOTE%%FILE%" "%WORKING_DIR%\%FILE%" >> %LOGFILE%
copy "%DIR_NO_QUOTE%%FILE%" "%WORKING_DIR%\%FILE%" >> %LOGFILE% 2>&1
:COMMIT
echo Check in %WORKING_DIR%\%FILE% into Source Control System >> %LOGFILE%
echo %CHECKIN% %WORKING_DIR%\%FILE% >> %LOGFILE%
echo ***** COMMENT_FILE ***** >> %LOGFILE%
type %COMMENT_FILE% >> %LOGFILE% 2>&1
echo . >> %LOGFILE%
echo ************************ >> %LOGFILE%
%CHECKIN% %WORKING_DIR%\%FILE% >> %LOGFILE% 2>&1
goto END
:END
echo ===================End Of Srcctrl.bat====================== >> %LOGFILE%
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Hello
I am evaluating integrating RTC with Siebel and looking for ideas on what will be the best way to integrate Siebel Checkin/out using SCM CLI.
I like to keep the things simple for development team to minimize the impact and hoping to achieve the automation that provide direct check-out (lock/download ) and check-in/deliver to stream in a similar fashion that happens from webclient (i.e. no need to worry about Repository Workspace).
Wondering if you can help.
Thank you
Asheesh