JobGroup - groupExists
JobGroup - groupExists
Description :
This command determines whether a job group exists. You must provide the full path (for example, /BLDeploy/WebApps) to the job group.
This command returns true if the group exists; otherwise it returns false.
Return type : Boolean
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
qualifiedGroupName | String | The fully qualified path to the job group. |
Example
The following example shows how to test that a group exists before taking an action such as adding a job to the group:
Script
JOB_GROUP1="/parent/group1"
if [`blcli JobGroup groupExists $JOB_GROUP1` == "true"]; then
# add job to group1
fi
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*