DeployJob - setParameterComponentPropertyName_1

DeployJob - setParameterComponentPropertyName

Description :

This command specifies the component property name to use at deploy time to retrieve the value for the unresolved local parameters of the BLPackage used by the DeployJob. If the property was set with a value or auto mapping of the component property name when this function is called, then the value will be unset. This command 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.

componentPropertyName

String

The component property name.

isRequired

Boolean

Set this to true to indicate that the property must exist on the component target and have a value; false otherwise.

useDefault

Boolean

Set this to true to indicate that the default value of package property should be used if the component property name cannot be used; if this is false and the component property name cannot be used, an exception is thrown.

Example

This example assumes that the Deploy Job referenced uses a BLPackage that has an unresolved parameter called install_dir.

Script





DeployJob setParameterComponentPropertyName /Applications/Apache/Deploy DeployApache install_dir component_prop_1 false true 



Was this page helpful? Yes No Submitting... Thank you

Comments