So I added the custom environment variables as an engine mode and it now correctly picks it up
My current config is as follows:
<GlobalConfiguration>
<Settings>
<GridServerReferencesForComputer>
<Value>node1>ZZZ=</Value>
</GridServerReferencesForComputer>
</Settings>
<EngineModes>
<EngineMode>
<Name>TeamCityEngineMode-2018-06-25T09:29:57</Name>
<Settings>
<CustomEnvironmentVariables>
<Value>TestsConnectionString = Server=(local);Initial Catalog=yada;Integrated Security=SSPI</Value>
<Value>IgnoreTestsResettingDb = True</Value>
<Value>ResetDbIfSchemaIsOutdated = True</Value>
</CustomEnvironmentVariables>
</Settings>
</EngineMode>
</EngineModes>
</GlobalConfiguration>
1) What happens is solution config also has engine mode with same name? I guess that engine mode overrides the "global" one above ? (which is why I always generate a new name for it above)
2) What about grid nodes? If those are defined in solution config I guess those overrides the ones I have set in my global config file? (And since they cannot be set in an engine mode it seems like a dead end on that one?)
Thanks.