Environment Instance property variables Target Properties are available in Workflow Editor (UI), Shell Plugins, and Script based plugins.
Variable Name | Description |
---|---|
<Instance <Target Group Code>_<Property Name> | Value of property defined on current environment and a particular instanceTarget Group. |
...
Note |
---|
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.
...
- myinstance='SAMPLEAPPS'
- myproperty='FDSVN_URL'
- mydynamicvar=${myinstance}_${myproperty}
- SAMPLEAPPS_FDSVN_URL
- echo ${mydynamicvar}
Groovy
Code Block | ||||
---|---|---|---|---|
| ||||
getProperty(propertyName) |
...