Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC command line interface / integration with Siebel

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

0 votes

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



5 answers

Permanent link
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

2 votes

Comments

Perfect, thanks Andrew.
Matt

Matt, did you have any success with this integration?

Matt, did you have any success with this integration?



I am also interested to know if RTC is successfully integrated with Siebel, for SCM.

Please let us know if it was a success. If yes, it would be great if you can put some tips over here.

Thanks,
Ahsan

Matt, did you have any success with this integration?



Hi,

Where do I insert that path variable ? In a config file which RTC picks up when starting up ?

Thanks in advance


Permanent link
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.

0 votes

Comments

Hello Robert,

I am currently attempting to integrate SiebelTools with RTC.
It sounds like you have already done what we are trying to achieve.
Are you able to share your batch file on this forum?

Kind regards,

Alex

Hi Robert,
It would be very kind if you could share the batch file you made for integrating Siebel with RTC.

Vijay

Hi,

Can you please share the batch file done for Siebel and RTC with me as well.

Thanks

 Hi Robert, 
Is that possible for you to share the batch file you made for integrating Siebel with RTC?


Thanks,
Kev

Hello ,

I am looking for this Integration urgently
Can anyone help me to send the Full working Script for Siebel and RTC ( In my case RTC Version is 4.0.3) Integration with the document how to install .
 .
Please send to -- praschau@in.ibm.com

Thanks

PKC
(Prasanta Kumar Chaudhuri)

 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,
Could you please share it with me as well? kurtulus@tr.ibm.com
Thank you in advance.

 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

Permanent link
 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. 

0 votes


Permanent link
 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

0 votes


Permanent link
 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%

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,202
× 3

Question asked: Sep 15 '09, 11:53 a.m.

Question was seen: 15,493 times

Last updated: Dec 02 '15, 1:36 p.m.

Confirmation Cancel Confirm