FileDeployJob - executeJobWithApprovalGetJobResultKey

FileDeployJob - executeJobWithApprovalGetJobResultKey

Description :

This command executes a File Deploy Job and waits for the job to end before returning. Job execution does not start until an approval is received. 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.

approvalId

Integer

Approval ID created using the Job namespace.

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_APPROVAL_ID=`blcli Job createApproval 2 2 "My change" 2 3 "" ""` 

JOB_RESULT_KEY=`blcli FileDeployJob executeJobWithApprovalGetJobResultKey $JOB_KEY $JOB_APPROVAL_ID` 



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

Comments