AgentInstallerJob - createAgentInstallerJobWithOperationTypeAndTargetGroup
This command creates an Agent Installer Job that can be used for executing specified operation type on a specified server group. The possible operation type values can one of following : 1. INSTALL 2. UPGRADE 3. INSTALL_AND_UPGRADE Once the job is created with given operation type, it can not be changed. e.g. If a Agent Installer Job is created for INSTALL operation, that can not be modified later for executing UPGRADE operation. Another instance of Agent Installer Job with operation type UPGRADE has to be created. The job instance created by this CLI will have all the default values for other job options. For changing the default values, BLCLIs for setting that particular job option has to be invoked following this execution of this CLI. Below are the default values of various job options Install Options: Update Server Properties : True Update Config Object registration : True Push Agent ACLs : True Upgrade Options: Push Agent ACLs : False Skip upgrade if server is in use : True Ignore Running Jobs : False Job Option: Preserve staging area on failure : True 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 :
Name of the job.
Fully qualified path to the job folder containing the job.
Fully qualified path to the depot folder containing the agent bundle.
Name of the agent bundle.
Name of the initial target server group.
The following example creates an Agent Installer Job with a single target server group and agent bundle for an Upgrade operation type:
SERVER_GROUP=/servergroup JOB_GROUP=/installjobs AGENT_BUNDLE_GROUP=/Bundles AGENT_BUNDLE=AgentBundleTest JOB_KEY=`blcli AgentInstallerJob createAgentInstallerJobWithOperationTypeAndTargetGroup installerJobName $JOB_GROUP $AGENT_BUNDLE_GROUP $AGENT_BUNDLE $SERVER_GROUP UPGRADE`