DeployJob - setDeployJobPostCmd

DeployJob - setDeployJobPostCmd

Description :

This command specifies a command that should run immediately after the completion of a Deploy Job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobDBKey

com.bladelogic.om.infra.model.base.keys.SJobKey

Handle to the Deploy Job.

postCmd

String

String to use as the post-command.

Example

The following example sets the command "rm /tmp/install.log" as a post-command for a Deploy Job.

Script





JOB_KEY=`blcli DeployJob  [getDBKeyByGroupAndName|DeployJob - getDBKeyByGroupAndName] /deploys deployconfig` 

DeployJob setDeployJobPostCmd $JOB_KEY "rm /tmp/install.log" 



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

Comments