JobRun - findLastRunKeyByJobKey_1
JobRun - findLastRunKeyByJobKey
Description :
This command finds the handle of the last job run for a deploy job.
Return type : DBKey
Command Input :
Variable Name |
Variable Type |
Description |
---|---|---|
jobKey |
DBKey |
Key for the job. |
excludeDeployAttempts |
Boolean |
Exclude deploy attempt run ID. |
Example
The following example shows how to find the run key for the last run of an Deploy Job:
Script
JOB_GROUP=/deploy
JOB_NAME=deploy1
JOB_KEY=`blcli DeployJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME`
RUN_KEY=`blcli JobRun findLastRunKeyByJobKey $JOB_KEY true`
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.