New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable specificity not working with multiple tenant tags. #5277
Comments
Being able to preview which variables will be used per tenant in a deployment would assist with this also. At the moment you have to run the deployment to see what gets applied which isn't great in production |
I disagree that this is a bug. This is the same situation as a machine that is in multiple roles. See https://octopus.com/blog/variable-specificity-and-complexity for the reasoning. Also the fact the deployment is created using specific tags (step 5 above) is not relevant as that just selects the tenants for which to create deployments. |
Tenant Tags were designed as a query language to help locate and select the applicable Tenants for a given deployment. We currently have no plans to increase the complexity of the specificity determination of variables to have them factor in matching tenant tags. I pinged the customer who was linked to this. |
1 similar comment
This thread has been automatically locked since there has not been any recent activity after it was closed. If you think you've found a related issue, please contact our support team so we can triage your issue, and make sure it's handled appropriately. |
Prerequisites
The bug
Variable specificity not working as expected with Tenant Tags. Variable scoping is not selecting the most specific value when multiple Tenant Tags apply.
What I expected to happen
If I have two variable values, one scoped to a Tenant Tag, the second scoped to Two Tenant tags. If I deploy to a Tenant which has both tags, I would expect the more explicitly tagged variable value to be used.
Steps to reproduce
Tag-A
&Tag-B
Apply Both tags to Tenant.foo
&bar
- Connect project to Tenantfoo
toTag-A
bar
toTag-A
&Tag-B
Tag-A
&Tag-B
It should be expected that the value
bar
is used for the variable, as we deployed to the Tenant by specifying a combination of both Tenant tags, however we do not seem to be correctly applying variable specificity when deploying to multiple Tenant tags.Screen capture
Source ticket with screenshot: https://secure.helpscout.net/conversation/757086339/38102?folderId=845288
Affected versions
Tested in LTS 2018.10.2
The text was updated successfully, but these errors were encountered: