Does "scm" have way to list snapshot properties?
Is there any existing
The reason for this type of information is because we are using an ANT script to drive the creation and population of components (from project streams across 15-20 different teams) within a workspace and set those components to a specific snapshot (using workspace replace-component); Currently our script outputs the following: Workspace: buildWorkspace (1071) The repository workspace listing within the RTC client shows (note the baseline in parenthesis): - buildWorkspace (loaded) Opening the snapshot BUILD14 within the client we can see the correlation: Components Having access to this type of information, we could modify our script output to be more meaningful, such that one can quickly correlate that Component1 is indeed set to the correct baseline associated with the snapshot: Workspace: buildWorkspace (1071) Ideally this command (for example snapshot name: XYZ description: <description> created by: <owner name> created on: <creation date> modified on: <modified date> <component 1>(baseline info) <component 2>(baseline info) etc Similar information for streams and workspaces would also be beneficial, ie --stream <stream_name>, --workspace <workspace_name> Many thanks in advance! |
4 answers
I'm not familiar enough with the command line to know if there's a way to list more details about a snapshot. However, I think it may make more sense to detect if the replace command was successful. You'll get an error if the replace didn't work.
Did you want this confirmation because of baselines not always being created when creating the snapshot? |
Exactly.
Now the script does detect if the replace command was successful (or not) and takes appropriate action as needed. However, from a user "viewing" perspective, if snapshot "BUILD14" did not create a baseline (also named BUILD14) on a component, then baselines look "amiss". By having that little extra bit of information as to what baseline is associated with snapshot BUILD14, it removes any doubt. I'm not familiar enough with the command line to know if there's a way to list more details about a snapshot. However, I think it may make more sense to detect if the replace command was successful. You'll get an error if the replace didn't work. |
A quick update. By adding
(1072) "BUILD14" (Replacement #3) Nov 1, 2011 12:43 PM (1039) "BUILD14" (orig: Snapshot Test 1) Sep 22, 2011 4:39 PM (1038) "BUILD14" (My test) Oct 12, 2011 2:16 PM Exactly. I'm not familiar enough with the command line to know if there's a way to list more details about a snapshot. However, I think it may make more sense to detect if the replace command was successful. You'll get an error if the replace didn't work. Comments
shalini saini
commented Nov 20 '14, 2:08 a.m.
what would be the exact command to find the creation date of a snapshot since I see the property set to be displayed for snapshot are only "name" and "description" scm list snapshots --verbose --json --repository <repo> --name <snapshot-name> { "snapshots": [ { "comment": "<no comment="">", "creationDate": "20-Nov-2014 2:01 PM", "name": "mah-snapshot", "url": "https:\/\/miles-lab.ottawa.ibm.com:19443\/jazz\/", "uuid": "_s7AA0HDnEeSlK4FRa695Uw" } ] }
|
You could also create another baseline before creating the snapshot to identify it for the snapshot. No baseline is created if there aren't any change sets since the last baseline. It'll reuse the last baseline instead of creating a new one.
|
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.