Skip to main content
Target Properties are exposed as variables available in Workflow Editor (UI), Shell Plugins, and Script based plugins.

Variable Name

Description

<Target Group Code>_<Property Name>

Value of property defined on current environment and a particular Target Group.

A Workflow is executed for specific a Environment. The value comes from the target defined by the currently executing Environment and the given Target Group.

If the Project has overridden the value for a specific Property, that overridden value is returned.

Properties on the current build/deploy target group do not need to be qualified with the Target Group code.

Unix or Windows Shell

The below snippet is an example of to get the FDSVN_URL property for the SAMPLEAPPS instance. Use ${variable_name} to find value for specific instance.
  • myTG=‘SAMPLEAPPS’
  • myproperty=‘FDSVN_URL’
  • mydynamicvar={myTG}_\{myTG\}\_{myproperty}
    • SAMPLEAPPS_FDSVN_URL
  • echo ${!mydynamicvar}
    • http://svn.domain.com/repo1
    • Note use of ! inside { as that is necessary to get value of the variable that was created by concatenation of two variables.

Groovy

Find value for specific instance

Find property from currently executing instance

Lookup a FDSVN_URL for SAMPLEAPPS instance