Unsupported content

 

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

AgentInstallerJob - setAgentInstallerJobPreserveStagingAreaOnFailure

AgentInstallerJob - setAgentInstallerJobPreserveStagingAreaOnFailure

Description :

This command sets whether or not the staging area for the Agent Installer Job will be deleted on a failure. If true, the staging area will not be deleted if the job fails for a device. If false, the staging area will always be deleted regardless of success/failure. This command returns a handle to the updated Agent Installer Job with the new Preserve Staging Area On Failure Enabled option.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

groupName

String

Fully qualified path to the job group containing the job.

jobName

String

Name of the job.

preserveStagingEnabled

Boolean

Update Preserve Staging Area On Failure as part of the job (true=enabled, false=disabled).

Example

The following example gets a handle to an Agent Installer Job called agentInstallerJob. This job is located in the /installjobs group. It then sets Preserve Staging Area On Failure Enabled to true.

Script





JOB_NAME=agentInstallerJob 

JOB_GROUP=/installjobs 

JOB_DBKEY=`blcli AgentInstallerJob setAgentInstallerJobPreserveStagingAreaOnFailure $JOB_GROUP $JOB_NAME true` 



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

Comments