Hi,
I am trying to get the order of my transforms to work correctly.
We have octopus v3.2.7
I set up these “Additional Transforms”
Web.#{Octopus.Environment.Name}.webnode.config => Web.config
metablogConfig.webnode.config => metablogConfig.config
UrlRewriting.webnode.config => UrlRewriting.config
The ‘webnode’ transforms should occur after the environment transforms, but this is what I see in the log
Transforming '_snip_\Web.config' using '_snip_\Web.Staging.webnode.config'.
Transforming '_snip_\Web.config' using '_snip_\Web.Staging.config'.
Transforming _snip_\config\metablogConfig.config' using '_snip_\config\metablogConfig.webnode.config'.
Transforming '_snip_\config\metablogConfig.config' using '_snip_\config\metablogConfig.staging.config'.
I want webnode transforms to occur second as they strip out some things not required in the ‘default’ environment configurations.
I tried using wildcards in the additional transforms field but I think there’s a bug in octopus causing this exception “System.ArgumentException: Second path fragment must not be a drive or UNC name.” (posted detailed stack trace here: http://help.octopusdeploy.com/discussions/problems/42385-upgrade-309-to-322-causes-systemargumentexception )
In any case the metablogConfig transforms do not occur in the order specified so I’m guessing that specifying them all manually won’t fix the ordering issue.