-
Suggestion
-
Resolution: Unresolved
-
None
Problem
It can be quite useful to declare some general parameters in the global account a reference them in repository variables.
If for instance, we declare the following ones in the account area:
SERVICE_1_PORT=8080 SERVICE_2_PORT=8081
And then declare the following one in the repository area:
THIS_SERVICE_PORT=$SERVICE_1_PORT
The variable THIS_SERVICE_PORT will not have the value 8080, but the literal $SERVICE_1_PORT.
Workaround
Use the eval command to create a new variable with the correct value.
e.g.
- eval export SERVER_PORT=$THIS_SERVICE_PORT