Template - setUnInstallBatchJob

Template - setUnInstallBatchJob

Description :

This command sets the uninstall Batch Job for the chosen template. If the template has no uninstall Batch Job, this sets it. If the template has a job, this replaces it.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

templateGroupName

String

Fully qualified template group name.

templateName

String

Name of the template.

batchJobKey

DBKey

DBKey of the Batch Job.

Example

The following example sets the uninstall job of a template.

Script


UNINSTALL_BATCHJOB_NAME="batchjob2" 

# Job group in which the uninstall Batch Job is stored. 

UNINSTALL_BATCHJOB_GROUP="/parent/group2" 

# Get the uninstall Batch Job DBKey using the above information. 

UNINSTALL_BATCHJOB_DBKEY=`blcli BatchJob getDBKeyByGroupAndName $UNINSTALL_BATCHJOB_GROUP $UNINSTALL_BATCHJOB_NAME` 

# Set the uninstall Batch Job on the template 

blcli Template setUnInstallBatchJob /TemplateGroupName TestTemplate $UNINSTALL_BATCHJOB_DBKEY 



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

Comments