Can I create a snapshot using an alias from the command line?
![]()
Eddie Breeveld (61●1●24●30)
| asked Jan 24 '14, 3:40 p.m.
retagged Feb 04 '14, 6:28 p.m. by Sonia Dimitrov (271●5●9)
From the command line in RTC 4.0.4 in a Windows batch can I create a snapshot using an alias?
For instance this does not work: scm login -r https://site:port/ccm -n RTC_ALIAS -u User -P %BuildSvcPass% -cThe login succeeds, but the create snapshot doesn't. It may be that I've misunderstood the syntax, what have I got wrong!? |
3 answers
![]()
Snapshot could be created using the alias.
scm create snapshot ALIAS Here, the ALIAS of the repository workspace should be specified. In RTC 4.0.5, the syntax is scm create snapshot -- ALIAS Here, the ALIAS of the repository workspace should be specified.. Comments Thanks Karthik. Does this mean that the login alias in my command line example is incorrect? How do I get a 'repository workspace' alias?
Run the following command from within the sandbox.
Thanks again. Unfortunately I am running this from a windows batch command, not the command line. I do not have a command output interpreter available. Can a snapshot be created using only information available from within a Windows batch?
Snapshot could be created if the name or uuid of repository workspace is known.
I'm sorry I am very new to RTC. Do you have a working example please? What does the 'name' look like? As this is part of the nightly build process, should I be taking a snapshot of the stream?
The 'name' is the name of the repository workspace. It is the name which is specified by the user while creating the repository workspace.
I'm sorry. In the above comment what I meant was
showing 5 of 7
show 2 more comments
|
![]()
The related Help topic is here http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m4/topic/com.ibm.team.scm.doc/topics/create_snapshot.html
|
![]()
By trial and error I found an answer, thanks also to both who replied with suggestions:
scm login -r https://site:port/ccm -n RTC_ALIAS -u User -P %BuildSvcPass% -cIt was not clear why I need to specify the URI again even though I have already logged on! Other switches can be added to give the snapshot a name and description. Comments At any point of time, you could be logged into multiple repositories. And, different repositories may have workspaces by the same name. So, URI is required.
|