29.9.  start.env with conditional sections

It is possible to use conditional sections in start.env.[148] This was introduced in order to be able to use one start.env in our PartServer environment for all checkouts.

The conditional sections depend on other environment variables.

Change is as follows:

[ENVIRONS]
var=value

[ENVIRONS(COMPUTERNAME=EXV9*)]
var=value

[ENVIRONS(COMPUTERNAME=BEXV9*)]
var=value

[ENVIRONS(LOGONSERVER=*server.de*)]
var=value

[ENVIRONS(LOGONSERVER=server.it*)]
var=value

The file is now parsed from top to bottom.

The last match wins (overwrites the var).

Any existing os-env-var can be used.

3 operations at the moment:

  • VAR=text* => StartsWith

  • VAR=*text => EndsWith

  • VAR=*text* => contains




[148] #48221