Utility - exportFileDeployRun
This command exports the results (job run log) of a File Deploy Job run to a file. You must identify the job run by its run ID.
Return type : java.lang.Void
Command Input :
Fully qualified job group that contains the File Deploy Job.
Name of the File Deploy Job whose run results you want to export.
ID of the File Deploy Job run whose results you want to export.
Name of the file that holds the export.
The following example shows how to export the job run result of a File Deploy Job. To prepare for the export, we first get the job key, and use it to get the job run key; we then convert the job run key to a job run ID, and then we are finally ready to run the export command.
JOB_GROUP="/sampleJobGroup" JOB_NAME="sampleJob" JOB_DB_KEY=`blcli FileDeployJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME` JOB_RUN_KEY=`blcli JobRun findAllRunKeysByJobKey $JOB_DB_KEY` JOB_RUN_ID=`blcli JobRun jobRunKeyToJobRunId $JOB_RUN_KEY` DEPLOY_JOB_RUN_EXPORT=`blcli Utility exportFileDeployRun $JOB_GROUP $JOB_NAME $JOB_RUN_ID "C:/temp/sampleJobResult.csv"`