DeployJobRun - findLastRunIdByJobKey
DeployJobRun - findLastRunIdByJobKey
Description :
This command finds the run id of the last job run for the deploy job. This command takes into account the unique structure of the deploy job when looking up the last run.
Return type : Integer
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobKey | DBKey | Key for the job. |
Example
JOB_GROUP=/Deploy
JOB_NAME=deploy_test
JOB_KEY=`blcli DeployJob getDBKeyByGroupAndName $JOB_GROUP $JOB_NAME`
RUN_ID=`blcli DeployJobRun findLastRunIdByJobKey $JOB_KEY`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*