DeployJob - setCheckTargetStagingDiskSpace
You can configure a Deploy Job so that it runs a check to determine if there is enough disk space on the target to stage a package for deployment.
This command lets you specify whether or not you want to run the check, and if you want to run the check, this command lets you specify the Deploy Job phase in which you want to run the check.
As input, this command requires a handle to the Deploy Job, and a checkPhase string that you can set to one of the following values:
- "none" - Turn off all disk space checking.
- "simulate" - Perform disk space checking only at the simulate phase.
- "stage" - Perform disk space checking only at the staging phase.
- "simulateandstage" - Perform disk space checking at both the simulate phase and the staging phase.
This command returns a handle to the updated job.
Return type : DBKey
Command Input :
The handle to the Deploy Job.
The phase in which you want the job to do the disk space check.
The following example shows how to configure a Deploy Job so that it checks the target disk space during the simulate phase.
# Name of the existing job. JOB_NAME="deployjob" # Job group in which Deploy Job is stored. JOB_GROUP="/Workspace/DeployJobs" # Get the Deploy Job DBKey using the above information. JOB_DBKEY=`blcli DeployJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME` # Configure the Deploy Job so that space checking takes place during the simulate phase. JOB_DBKEY=`blcli DeployJob setCheckTargetStagingDiskSpace $JOB_DBKEY "simulate"`