JobGroup - createJobGroup

JobGroup - createJobGroup

Description :

This command creates a job group within a parent job group. You must provide the ID of the parent job group.

This command returns the ID of the newly created job group.

Return type : Integer

Command Input :

Variable Name

Variable Type

Description

groupName

String

Name of the job group to be created.

parentId

Integer

ID of the parent job group.

Example

This example shows how to create a job group inside another job group by providing the parent group's ID:

Script





PARENT_GROUP="/parent" 

PARENT_GROUP_ID=`blcli JobGroup groupNameToId $PARENT_GROUP 

JOB_GROUP1="group1" 

# Now create new group 

JOB_GROUP1_ID=`blcli JobGroup createJobGroup $JOB_GROUP1 $PARENT_GROUP_ID` 



Was this page helpful? Yes No Submitting... Thank you

Comments