DeployJob - setDeployJobUndoPostCmd
DeployJob - setDeployJobUndoPostCmd
Description :
This command specifies a command that should run immediately after you execute an undoDeploy command.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobDBKey | com.bladelogic.om.infra.model.base.keys.SJobKey | Handle to the Deploy Job. |
undoPostCmd | String | String to use as the undo post-command. |
Example
This example specifies that the command "rm /tmp/install.log" should run after you undo a Deploy Job.
Script
JOB_KEY=`blcli DeployJob [getDBKeyByGroupAndName|DeployJob - getDBKeyByGroupAndName] /deploys deployconfig`
DeployJob setDeployJobUndoPostCmd $JOB_KEY "rm /tmp/install.log"
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*