Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Target Properties are 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 Project has overridden value for specific Property, overridden value is returned.

Properties on build/deploy target instance do not need to be instance-qualified.

Unix 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.

  • myinstance='SAMPLEAPPS'
  • myproperty='FDSVN_URL'
  • mydynamicvar=${myinstance}_${myproperty}
    • SAMPLEAPPS_FDSVN_URL
  • echo ${mydynamicvar}

Groovy

Find value for specific instance
getProperty(propertyName)
Find property from currently executing instance
getProperty(FD_INSTANCE_CODE + "_FDJDBC_USER")
Lookup a FDSVN_URL for SAMPLEAPPS instance
svnUrl=""; lookupkey="SAMPLEAPPS" + "_FDSVN_URL"; if (binding.variables.containsKey(lookupkey)) { svnUrl=getProperty(lookupkey);}; return svnUrl;
  • No labels