Hi,
I think my issue is similar to http://help.octopusdeploy.com/discussions/problems/44461-additional-transform-order .
We have our standard environment transforms Web.Environment.config and a custom transform Web.custom.config. These used to get applied in the order of:
- Environment transforms.
- Additional transforms.
This has now changed and gets applied in the opposite order. This is causing us an issue because we have an application that reads from two queues, a primary and a secondary (which isn’t always deployed). So the environment transforms contain all the common transforms and the primary deployments values.
The additional transform then contains the 1 element that is different for the secondary install, so the problem is when we do the secondary deployment it:
- Transforms to the correct value.
- Transforms back to the primary.
Reading the documentation it implies I should be able to control the order by specifying all my transforms.
From http://docs.octopusdeploy.com/display/OD/Configuration+files#Configurationfiles-ConfigurationVariables
If you would like to define the order of all of your transformations, if you list them in the order of transformation inside the Additional transforms feature then Octopus will use that order to run the transforms.
So I changed my configuration to unticked “Automatically run configuration transformation files” and set my additional transforms to
*.Release.config => *.config
*.#{Octopus.Environment.Name}.config => *.config
*.Custom.config => *.config
However doing this Octopus is ignoring the first two transforms.
Transforming 'E:\Octopus\Applications\Dev\Application\4.4.0_1\Application.exe.config' using 'E:\Octopus\Applications\Dev\Applications\4.4.0_1\Applications.exe.Custom.config'.
15:37:06
Info
Transforming 'E:\Octopus\Applications\Dev\Application\4.4.0_1\Application.exe.config' using 'E:\Octopus\Applications\Dev\Application\4.4.0_1\Application.exe.Dev.config'.
If I leave this “Additional Transform” setting in and retick the apply automatically it goes back to applying my custom transform first then all the standard ones.
We are running Octopus 3.3.12