lscm Command
good afternoon,
I'm using the command lscm in a step Build Forge but does not work. What to do to run the commands lscm?
This is my code:
SET PATH=C:\Archivos de programa\IBM\TeamConcert\scmtools\eclipse
lscm login -r https://serv:9443/ccm -u bforge -P bforge -c
lscm create workspace -r https://serv:9443/ccm -s Stream BuildSpace
lscm logout -r https://serv:9443/ccm
I'm using the command lscm in a step Build Forge but does not work. What to do to run the commands lscm?
This is my code:
SET PATH=C:\Archivos de programa\IBM\TeamConcert\scmtools\eclipse
lscm login -r https://serv:9443/ccm -u bforge -P bforge -c
lscm create workspace -r https://serv:9443/ccm -s Stream BuildSpace
lscm logout -r https://serv:9443/ccm
Accepted answer
lscm will start a daemon process, and SCM is a one shot deal. The daemon will load the SCM files and will reuse them on subsequent calls. That is the reason it can act poorly in automated environments. If you are using many commands together and decide to use lscm, make sure to clean up the daemon process at the end of the script. That will make sure the environment is clean for the next run.
6 other answers
Hi,
Do you have to use lscm? I would recommend using the 'scm' tool instead (same directory). While I understand there are performance considerations for lscm, I have found that its behavior in some environments like Ant exec task and others is not always what is expected.
Brent Ulbricht
RTC Build Lead
Do you have to use lscm? I would recommend using the 'scm' tool instead (same directory). While I understand there are performance considerations for lscm, I have found that its behavior in some environments like Ant exec task and others is not always what is expected.
Brent Ulbricht
RTC Build Lead
Hello,
Is the source for the lscm and scm tools available? We would like to better understand how exactly lscm works. It's not behaving well in our environment, with lots of lscm processes that never die. We would like to understand how the lscm daemon works, how it decides when to shutdown itself, for how long it waits for further commands before shuting down, etc.
Thanks,
Claudio Neves
Is the source for the lscm and scm tools available? We would like to better understand how exactly lscm works. It's not behaving well in our environment, with lots of lscm processes that never die. We would like to understand how the lscm daemon works, how it decides when to shutdown itself, for how long it waits for further commands before shuting down, etc.
Thanks,
Claudio Neves
good afternoon,
I'm using the command lscm in a step Build Forge but does not work. What to do to run the commands lscm?
This is my code:
SET PATH=C:\Archivos de programa\IBM\TeamConcert\scmtools\eclipse
lscm login -r https://serv:9443/ccm -u bforge -P bforge -c
lscm create workspace -r https://serv:9443/ccm -s Stream BuildSpace
lscm logout -r https://serv:9443/ccm
Hi,
What output do you get (error, hang, other)?
Brent Ulbricht
RTC Build Lead
good afternoon,
I'm using the command lscm in a step Build Forge but does not work. What to do to run the commands lscm?
This is my code:
SET PATH=C:\Archivos de programa\IBM\TeamConcert\scmtools\eclipse
lscm login -r https://serv:9443/ccm -u bforge -P bforge -c
lscm create workspace -r https://serv:9443/ccm -s Stream BuildSpace
lscm logout -r https://serv:9443/ccm
Hi,
What output do you get (error, hang, other)?
Brent Ulbricht
RTC Build Lead
this is the output of BF:
108 27/09/11 13:19 EXEC Entorno local establecido en 'Spanish_Spain.1252'
211 27/09/11 13:19 MKDIR Se ha creado .
212 27/09/11 13:19 RESULT 0 (0)
312 27/09/11 13:19 EXEC Entorno local establecido en 'Spanish_Spain.1252'
416 27/09/11 13:19 EXEC Realizando expansin de variable en lnea de mandatos
417 27/09/11 13:19 SCRIPT SET PATH=C:\Archivos de programa\IBM\TeamConcert\scmtools\eclipse
418 27/09/11 13:19 SCRIPT lscm login -r https://bodapps39:9443/ccm -u bforge -P bforge -c
419 27/09/11 13:19 SCRIPT lscm workspace delete BuildSpace -r https://bodapps39:9443/ccm
420 27/09/11 13:19 SCRIPT lscm create workspace -r https://bodapps39:9443/ccm -s Integracion_Reclamos BuildSpace
421 27/09/11 13:19 SCRIPT lscm load -r https://bodapps39:9443/ccm -d \\bodapps21\Desarrollo\BPMS_Fuentes BuildSpace Reclamo_Ultimu_SCM --force
422 27/09/11 13:19 SCRIPT lscm logout -r https://bodapps39:9443/ccm
423 27/09/11 13:19 EXEC inicio
424 27/09/11 13:19 EXEC Se ha iniciado la sesin en https://bodapps39:9443/ccm
425 27/09/11 13:19 EXEC fin
426 27/09/11 13:19 RESULT 0 (0)
If I use these steps using cmd.exe work but not run with BF, the sources arent downloaded from the stream
Hi,
Do you have to use lscm? I would recommend using the 'scm' tool instead (same directory). While I understand there are performance considerations for lscm, I have found that its behavior in some environments like Ant exec task and others is not always what is expected.
Brent Ulbricht
RTC Build Lead
Very Thanks!!!! this work for me!!
Hello,
Is the source for the lscm and scm tools available? We would like to better understand how exactly lscm works. It's not behaving well in our environment, with lots of lscm processes that never die. We would like to understand how the lscm daemon works, how it decides when to shutdown itself, for how long it waits for further commands before shuting down, etc.
Thanks,
Claudio Neves
Hi Claudio,
As far as I know lscm is intended as interactive tool where user sit in front of the console and controls the session. I have found that scm (having same capabilities) is much better for non-interactive uses (like automation e.g. Build Forge or unstable sessions that an be interrupted leaving stray sessions active).
Regards,
Jakub