DeployJob - setDeployJobUndoPreCmd

DeployJob - setDeployJobUndoPreCmd

Description :

This command specifies a command that should run immediately before you execute an undoDeploy command.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobDBKey

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

Deploy Job DBKey

undoPreCmd

String

String to use as the undo pre-command

Example

This example specifies that the command "cp /etc/hosts.bak /etc/hosts" should run before you undo a Deploy Job.

Script





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

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



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

Comments