DepotGroup - createDepotGroup
DepotGroup - createDepotGroup
Description :
This command creates a depot group as a child of a parent depot group. You must provide the ID of the parent group and the name of the group to be created.
This command returns the ID of the newly created group.
Return type : Integer
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
groupName | String | Name of the depot group to be created. |
parentId | Integer | ID of the parent depot group. |
Example
The following example shows how to create a depot group inside another depot group by providing the parent group's ID:
Script
PARENT_GROUP_ID=`blcli DepotGroup groupNameToId /parent`
DEPOT_GROUP1="group1"
# Now create new group
DEPOT_GROUP1_ID=`blcli DepotGroup createDepotGroup $DEPOT_GROUP1 $PARENT_GROUP_ID`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*