AgentInstallerJob - createAgentInstallerJobWithTargetGroup
AgentInstallerJob - createAgentInstallerJobWithTargetGroup
Description :
This command creates an Agent Installer Job that is run against one group. This command returns a handle to the newly created Agent Installer Job. The handle can be used in other commands that need to reference the Agent Installer Job.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
---|---|---|
jobName | String | Name of the job. |
groupName | String | Fully qualified path to the job folder containing the job. |
bundleGroup | String | Fully qualified path to the depot folder containing the agent bundle. |
bundleName | String | Name of the agent bundle. |
serverGroup | String | Name of the initial target server group. |
uspEnabled | Boolean | Update server properties as part of the job (true=enabled, false=disabled). |
configRegistrationEnabled | Boolean | Register configuration objects as part of the job (true=enabled, false=disabled). |
aclPushEnabled | Boolean | Push ACLs as part of the job (true=enabled, false=disabled). |
preserveStagingEnabled | Boolean | Preserve Staging Area On Failure as part of the job (true=enabled, false=disabled). |
Example
The following example creates an Agent Installer Job with a single target server group and agent bundle:
Script
SERVER_GROUP=/servergroup
JOB_GROUP=/installjobs
AGENT_BUNDLE_GROUP=/Bundles
AGENT_BUNDLE=AgentBundleTest
JOB_KEY=`blcli AgentInstallerJob createAgentInstallerJobWithTargetGroup agentInstallerJob $JOB_GROUP $AGENT_BUNDLE_GROUP $AGENT_BUNDLE $SERVER_GROUP true true true false`