show operations example

show operations example.

Example

You can use the show operations command to show the operation history for a workspace or stream:

scm show operations -r ella 1313
Stream: (1313) "JUnit" <-> (1323) "Target Stream"

scm show operations -r ella 1313
Stream: (1313) "JUnit" <-> (1323) "Target Stream"
  (1324) Delivered changes into component "JUnit" Andrew Niefer 25-Apr-2017 01:47:33 PM
  (1325) Delivered changes into component "JUnit" Bill Cassavelli 08-Feb-2017 11:27:35 AM
  (1326) Delivered changes into component "<Inaccessible component>" Bill Cassavelli 08-Feb-2017 11:23:59 AM
  (1327) Replaced 2 components Bill Cassavelli 13-Jan-2017 04:02:28 PM
  (1328) Delivered changes into component "JUnit" Andrew Niefer 06-Jan-2017 11:04:40 AM
  (1329) Suspended or discarded changes from component "JUnit" Andrew Niefer 06-Jan-2017 11:04:39 AM
  (1330) Removed component "Third" Bill Cassavelli 06-Jan-2017 10:38:39 AM
  ...

To see more information about each operation, you can specify the -v/–verbose argument. Similar to other command-line client operations, you can specify the -j/–json argument to receive the output in JSON format rather than formatted text:

scm show operations -r ella 1313 --verbose
Stream: (1313) "JUnit" <->(1323) "Target Stream"

  Operation: (1324) Delivered changes into component "JUnit"
  Performed by: Andrew Niefer on: 25-Apr-2017 01:47:33 PM
    Component: (1334) "JUnit"
      Change sets:
        (1335) 25-Apr-2017 01:47:32 PM  <No Comment>
  Operation: (1325) Delivered changes into component "JUnit"
  Performed by: Bill Cassavelli on: 08-Feb-2017 11:27:35 AM
  Changes were delivered from workspace "Stream History Workspace"
    Component: (1334) "JUnit"
      Change sets:
        (1336) 08-Feb-2017 11:27:35 AM 7734: [Server] Find snapshot information to show in operation summary/details <No Comment>
  ...

To create a new workspace by using the command line, you can use the scm create workspace command. To specify which operation history reference to use, you use the –historyRef argument:

scm create workspace -r ella --historyRef 1327 "My workspace name"
Workspace (1345) "My workspace name" successfully created.

To roll back a workspace, or components in a workspace, you can use the scm set component command on the command line to specify which components to replace:

scm list components -r ella 1345
Workspace: (1345) "My workspace name"
  Component: (1334) "JUnit"

scm set component -r ella 1345 historyRef 1325 1334
Set component command completed successfully.


video icon Video

Jazz.net channel
Software Education channel

learn icon Courses

IoT Academy
Skills Gateway

ask icon Community

Jazz.net
Jazz.net forums
Jazz.net library

support icon Support

IBM Support Community
Deployment wiki