DeployJob - setDeployJobPreCmd

DeployJob - setDeployJobPreCmd

Description :

This command specifies a command that should run immediately before executing 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.

preCmd

String

String to use as the pre-command.

Example

The following example specifies that the pre-command "cp /etc/hosts /etc/hosts.bak" should run immediately before starting a Deploy Job.

Script





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

DeployJob setDeployJobPreCmd $JOB_KEY "cp /etc/hosts /etc/hosts.bak" 



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

Comments