Can I create a snapshot using an alias from the command line?
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:
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!?
scm create snapshot RTC_ALIAS
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..
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
showing 5 of 7
show 2 more comments
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.
scm create snapshot -r https://site:port/ccm "workspace_name"