FileDeployJob - executeJobGetJobResultKey

FileDeployJob - executeJobGetJobResultKey

Description :

This command executes a File Deploy Job and waits for the job to end before returning. If approval is enabled for the job type use the other command which takes in approval id as an additional input. This command returns a handle to the job result. This handle can be used in other commands that need to reference the results of the File Deploy Job.

Return type : DBKey

Command Input :

Variable Name

Variable Type

Description

jobKey

DBKey

Handle to the File Deploy Job to be executed.

Example

The following example gets a handle to an File Deploy Job, executes the job, and returns a handle to the job result.

Script


JOB_FOLDER="/Jobs/FileDeployJobs" 

JOB_NAME="Push Files to ABC Servers" 

JOB_KEY=`blcli FileDeployJob getDBKeyByGroupAndName "$JOB_FOLDER" "$JOB_NAME"` 

JOB_RESULT_KEY=`blcli FileDeployJob executeJobGetJobResultKey $JOB_KEY` 



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

Comments