ExecutionTask - getOverriddenJobPropertyByJR
ExecutionTask - getOverriddenJobPropertyByJR
Description :
This command returns the overridden value of a job's property for a specific job run. This command returns a String represents the value of the given property for the a specific job run.
Return type : String
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobRunKey | com.bladelogic.om.infra.model.base.keys.SJobRunKey | Handle to a job run. |
propertyName | String | Name of the property to retrieve its overridden value. |
Example
The following example shows how to retrieve the overridden value for a job's property in a specific job run. In this example we will retrieve the value for JOB_TIMEOUT property for the last job run of the job 'snapJob'.
Script
JOB_KEY=`blcli SnapshotJob getDBKeyByGroupAndName /snapshots snapJob` JOB_RUN_KEY=`blcli JobRun findLastRunKeyByJobKey $JOB_KEY`
blcli ExecutionTask getOverriddenJobPropertyByJR $JOB_RUN_KEY JOB_TIMEOUT
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*