Skip to content
Thierry Lacour edited this page Mar 21, 2016 · 12 revisions

Concept and workflow

cc2git is a Groovy DSL used to migrate from ClearCase UCM to Git.

cc2git allows you to select sets of baselines from component's streams and assign actions to them. These actions can be anything but will most likely consist of Git commits, tags, etc.

For a migration we set up a temporary child stream and view (called the migration stream/view). Then we follow a rather simple workflow of:

  1. Rebase the baseline onto the migration stream
  2. Update the migration view
  3. Empty the git work tree
  4. Copy the contents of the view into the work tree
  5. Execute all the actions

This way you 'port' your baselines over to Git as commits.

Mapping table

CCUCM Git
Component -> Repository
Stream -> Branch
Baseline -> Commit

Running the DSL

Execute Run.groovy and supply your cc2git dsl script as its first parameter.

ex.: groovy Run.groovy myScript.groovy

Arguments

Both positional or named arguments can be passed into the script.

groovy Run.groovy myDslScript.groovy myArgument

println args[1] // myArgument

groovy Run.groovy myDslScript.groovy foo="bar and baz"

println foo     // bar and baz
Clone this wiki locally