DeployJob - setParameterComponentPropertyName
DeployJob - setParameterComponentPropertyName
Description :
This command will automatically map, at deploy time, an unresolved local parameter of the BLPackage associated with the DeployJob, to the value of a component property that has the same name as the local parameter. If the property was set with a value or a component property name when this function is called, then the value will be unset. This function fails if the local property is not set to editable in the package.
Return type : com.bladelogic.om.infra.model.job.Job
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
groupName | String | Name of the job folder containing the job. |
jobName | String | Name of the Deploy Job. |
parameterName | String | Name of the BLPackage parameter. |
isRequired | Boolean | Set this to true to indicate that the property must exist on the component target and have a value; false otherwise. |
Example
This example assumes that the Deploy Job referenced uses a BLPackage that has an unresolved parameter called install_dir. The install_dir local parameter will be assigned the value of the component property named install_dir.
Script
DeployJob setParameterComponentPropertyName /Applications/Apache/Deploy DeployApache install_dir false