JobRun - getJobRunKeyByScheduleId


JobRun - getJobRunKeyByScheduleId

Description :

This command returns the Job Run Key for a given Schedule ID. Job such as a Batch Job or Patching Job returns multiple job run keys for a single Schedule ID.

Return type : String

Command Input :

Variable Name

Variable Type

Description

scheduleId

Integer

Schedule ID of the Job Run

Example

The following example shows how to get the Job Run Key for a scheduled job.

Script

JOB_FOLDER="/DeployJobs"
JOB_NAME="Deploy to all Servers"
JOB_KEY=`blcli DeployJob getDBKeyByGroupAndName "$JOB_FOLDER" "$JOB_NAME"`
JOB_SCHEDULE_ID=`blcli JobRun executeJobAndReturnScheduleID "$JOB_KEY"`
JOB_RUN_KEY=`blcli JobRun getJobRunKeyByScheduleId "$JOB_SCEDULE_ID"`

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Server Automation Command Line Interface 20.02