Environment Instance property variables are available in Workflow Editor (UI), Shell Plugins, and Script based plugins.
...
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 of 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
Code Block | ||||
---|---|---|---|---|
| ||||
getProperty(propertyName) |
...