Utility - exportDeployRun

Utility - exportDeployRun

Description :

This command exports the results (job run log) of a Deploy Job run to a file. You must identify the job run by its run ID. The CSV file contains the following values on each line: Participant,Step,Attempt,Date,Type,Message,Item Id,Item Name For example: eng.bladelogic.com,Commit,1,10/07/2013 10:05:47,Info,Processing asset FILE,2,C:/Apps/LTSec/bin/NUETPolicy.dll

Return type : java.lang.Void

Command Input :

Variable Name

Variable Type

Description

jobGroupName

String

Fully qualified job group that contains the Deploy Job.

jobName

String

Name of the Deploy Job whose run results you want to export.

runId

Integer

ID of the Deploy Job run whose results you want to export.

exportFileName

String

Name of the file that holds the export.

Example

The following example shows how to export the job run result of a Deploy Job.

Script





JOB_ID=`blcli DeployJobRun findLastRunIdByJobKey $JOB_KEY` 

blcli Utility exportDeployRun          "/sampleJobGroup" "sampleJob" $JOB_ID  "C:/temp/sampleJobResult.csv" 



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

Comments

  1. Matthew Ragland

    When I use this command, I seem to be missing all the log information, here is what shows in my file: Job Name,"COMMAND-20170831081603 Run at Aug 31, 2017 8:16:55 AM" Start Time,Aug 31, 2017 8:16:55 AM End Time,Aug 31, 2017 8:17:43 AM Status,Completed Successfully

    Participant,Step,Attempt,Date,Type,Message,Item Id,Item Name

    But when I export the same log from the console, I get all the log info. Any suggestions?

    Aug 31, 2017 11:19
  2. Matthew Ragland

    When I use this command, I seem to be missing all the log information, here is what shows in my file: Job Name,"COMMAND-20170831081603 Run at Aug 31, 2017 8:16:55 AM" Start Time,Aug 31, 2017 8:16:55 AM End Time,Aug 31, 2017 8:17:43 AM Status,Completed Successfully

    Participant,Step,Attempt,Date,Type,Message,Item Id,Item Name

    But when I export the same log from the console, I get all the log info. Any suggestions? I am running 8.7.0.295

    Aug 31, 2017 11:20