We have a project with configured variables sets, which contain scoped variables.
For example we have a variable setup as follows:
Variable: SYSTEM_A_PASSWORD Env: LIVE, Value: XXX
Variable: SYSTEM_A_PASSWORD Env: LIVE, Role: WEBAPP2, Value: YYY
This is a variable set which is shared across multiple projects.
Because of the way we have to do some of our infrastructure deployments we need to have a defined offline target, which needs to run for certain roles:
Target: Offline Roles: WEBAPP1, WEBAPP2, WEBAPP3…
When we do a variable preview of the value, including the environment (LIVE), target role (WEBAPP1) and deployment target (Offline) we are shown the variable should be set to XXX.
Upon doing the deployment we have found that WEBAPP1 has a value of YYY for SYSTEM_A_PASSWORD and not XXX as expected.
Our understanding is that this is the correct behaviour (because the Offline target has a WEBAPP2 role, which causes it to use the more specific value of the variable set). The preview window however would appear to be displaying incorrectly.
Would you be able to clarify if our understanding of how this works is correct, and then furthermore if there is actually a bug/issue in the variable preview (or that we are trying to do something which isn’t supported).