RTC-SCM-CLI: how to detect whether a login is necessary before calling any CLI command ?
Karthikeyan Baskaran (45●8●13)
| asked Oct 10 '13, 8:08 a.m.
retagged Dec 13 '13, 11:31 a.m. by David Lafreniere (4.8k●7)
I'm building a wrapper tool (C# .net) around the RTC SCM CLI
This wrapper tool calls lscm.bat (from RTC-scmTools-Win-4.0.3 installation) These are the steps that are executed by the user of the wrapper tool:
Questions:
Thanks for your help in advance.
|
2 answers
Shashikant Padur (4.3k●2●7)
| answered Oct 29 '13, 5:34 a.m.
JAZZ DEVELOPER edited Oct 29 '13, 5:35 a.m.
If you have run the login command the username and encrypted password is stored in the {users home directory}/.jazzscm/repositories.txt file.
In case you server goes down or inaccessible or the license session has terminated or expired you will get the appropriate error. Once the server is operational/accessible/license available you do not have to rerun the login command. The command should work as the daemon already has the credentials. If the daemon was shutdown for some reason, the credentials will be picked up from the cached location.
Comments
Karthikeyan Baskaran
commented Dec 11 '13, 5:47 a.m.
Thanks for the info.
|
If you add the -n nickname to the scm login step and there after use nickname for the repository parameter, I would guess that the login lifetime would be impacted by
Comments
Karthikeyan Baskaran
commented Oct 25 '13, 4:29 a.m.
Thanks for help.
|
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.