/
Environment Instance Property Variables
The following macros are not currently supported in the header:
- style
Environment Instance Property Variables
Environment Instance property variables are available in Workflow Editor (UI), Shell Plugins, and Script based plugins.
Variable Name | Description |
---|---|
<Instance Code>_<Property Name> | Value of property defined on current environment and a particular instance. |
Properties on build/deploy target instance do not need to be instance-qualified.
For example, if you are looking for FDSVN_URL of SAMPLEAPPS instance.
Unix Shell
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;
, multiple selections available,
Related content
Environment Instance Property Variables
Environment Instance Property Variables
More like this
Environment Instance Property Variables
Environment Instance Property Variables
More like this
Environment Instance Property Variables
Environment Instance Property Variables
More like this
Environment Instance Property Variables
Environment Instance Property Variables
More like this
Environment Instance Property Variables
Environment Instance Property Variables
More like this
Environment Instance Property Variables
Environment Instance Property Variables
More like this
The following macros are not currently supported in the footer:
- style