FileDeployJob - findJobResultKey
FileDeployJob - findJobResultKey
Description :
This command is deprecated. Please consider using findJobResultKey .
This command finds a handle to a File Deploy Job result. You must provide handles identifying the job and the job run. 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 associated with the job. |
jobRunKey |
DBKey |
Handle associated with a particular job run. |
Example
The following example shows how to specify a job run for a File Deploy Job and obtain the result key:
Script
FILE_DEPLOY_JOB_KEY=`blcli FileDeployJob getDBKeyByGroupAndName /FileDeploy FileDeployJob`
#get all the run keys
RUN_KEYS=`blcli JobRun findAllRunKeysByJobKey $ACL_PUSH_JOB_KEY`
#select out the run of interest.
for RUN_KEY in "${RUN_KEYS[@]}"
do # some selection.
START_TIME=`blcli JobRun getStartTimeByRunKey $RUN_KEY`
if [ "$START_TIME"="$DESIRED_TIME" ]
NEEDED_RUN_KEY=$RUN_KEY
fi
done
JOB_RESULT_KEY=`blcli FileDeployJob findJobResultKey $FILE_DEPLOY_JOB_KEY $NEEDED_RUN_KEY`
Comments
Log in or register to comment.