RTC SCM CLI: Load files from snapshot, stream, or workspace
Accepted answer
Comments
Thanks.
1) Does this "load" command take the files to a file system where I can interact with the files using the host OS or are the files only usable from within RTC?
2) How can I use the SCM CLI to set a workspace equal to a snapshot and a stream (separately)?
At this point, it sounds like you're missing on some of the fundamentals of SCM. I suggest reading up on some of the introductory articles on SCM.
Comment Part 1:
Sorry for the lack of background. I was trying to keep this question as succinct as possible.
We currently have an automated/scripted build and deploy process that uses a different SCM repository, downloads the files to be built and deployed to a file system on the build/deploy server, and runs scripted (mostly Linux) commands against those files to build and deploy various parts of the application (many database and various kinds of application servers). Our task at hand is to migrate all the source code to RTC SCM and to integrate with the existing build/deploy process.
Comment Part 2 (continued from Part 1)…
This leads to the thought that we can use RTC to identify the work items and associated change sets that are ready/approved to be built/deployed to a particular environment, create a stream and/or a snapshot that matches just the work items/change sets that are to be built/deployed, and move the associated files to the build/deploy server where the existing process can work with the files.
Comment Part 3 (continued)…
So follow-up question #1 has to do with if we can create a workspace associated with a sandbox on the build server and use the CLI “load” command to get files from the workspace to the OS file system on the build server, will the Linux scripts on that server be able to work with the files as they always would?
Follow-up question #2 has to do with what SCM CLI commands can we use to get the workspace setup properly assuming we have a snapshot and/or a stream defined that has the content that we want to build and deploy.
Thanks for the articles. They will be useful in increasing our understanding of RTC SCM! Is there a page that has a link to all of the RTC SCM articles?
Tim or others, with the additional information above, are you able to answer my questions more directly? Thanks.
1) Does this "load" command take the files to a file system where I can interact with the files using the host OS or are the files only usable from within RTC?
2) How can I use the SCM CLI to set a workspace equal to a snapshot and a stream (separately)?
1) I don't know if you have other specific requirements other than being able to access the content. Load just puts the content on disk and tracks changes.