To migrate a defined component from a defined stream, a temporary child stream and view are made. The child stream is rebased to the selected Baselines and the view is updated. For every baseline, actions are run to migrate the view contents to Git in whatever way you see fit. The view and stream are cleaned up afterwards.
source('ccucm') {
/* Configure the source here */
}
Defines the component to migrate.
source('ccucm') {
component 'component:foo@\\myVob'
}
Defines the stream to migrate from.
source('ccucm') {
stream 'stream:foo_Int@\\myVob'
}
Defines the migration workspace. This will be a temporary view used solely for the migration. Defaults to a new temp dir in the current working directory.
source('ccucm') {
workspace 'path/to/migration/workspace'
}
Which files should be checked out when updating the migration view.
modifiable
checks out all modifiable files, while all
also includes read-only files.
Either all
or modifiable
. Defaults to modifiable
.
Defines the project on which the temporary migration child stream should be made. Defaults to the target stream.
source('ccucm') {
loadComponents 'all'
}
Defines the project on which the temporary migration child stream should be made. Defaults to the target stream.
source('ccucm') {
migrationProject 'Migration'
}
Controls if the temporary migration stream should be read-only or not.
May have a positive effect on performance.
Defaults to false
.
source('ccucm') {
readOnlyMigrationStream true
}
Note: May break when combined with loadComponents 'modifiable'
afterBaseline (String baselineName)
criteria {
afterBaseline 'v1.0.0\\@myVob'
}
afterDate (Date date)
criteria {
afterDate (new Date() - 100) // 100 days ago
}
afterDate (String format, String date)
criteria {
afterDate 'dd-MM-yyyy', '20-06-2010'
}
baselineName (String regex)
criteria {
baselineName(/v(\d+\.?){3}/) //ex.: v1.0.12
}
baselineNames (String... names)
criteria {
baselineNames 'v1.0.0\\@myVob', 'v1.2.5\\@myVob', 'v1.5.0\\@myVob'
}
baselineNames (List<String> names)
criteria {
baselineNames(['v1.0.0\\@myVob', 'v1.2.5\\@myVob', 'v1.5.0\\@myVob'])
}
promotionLevels (String... promotionLevels)
criteria {
promotionLevels 'TESTED', 'RELEASED'
}
baselineProperty (HashMap<String, String> mappingValues)
extractions {
/* Map the 'shortname' property to the 'name' variable for use in the actions. */
baselineProperty([name: 'shortname', level: 'promotionLevel'])
}
Note: Property context of a COOL Baseline.
GitHub issues