Hello,
I’m having a problem with configuration transforms.
We have a deployment package that contains around 20 or so executable files with corresponding config files.
For example:
B001_01_01Batch.exe
B001_01_01Batch.exe.config
B001_01_02Batch.exe
B001_01_02Batch.exe.config
B001_02_01Batch.exe
B001_02_01Batch.exe.config
etc…
We also have configuration transform files like this:
app.IT2-STUB.config
app.IT2-NOSTUB.config
etc…
In the deployment step I have added the following to ‘Additional transforms’:
app.#{ScopeCode}-#{StubFlag}.config => *.exe.config
On deployment, this results in the transform file being explictly set to ‘app.IT2-NOSTUB.config’.
My intention is to have that configuration transform applied to all of the executable config files. However, it is only being applied to the very first config file it finds, which is ‘B001_01_01Batch.exe.config’. The rest of the exe.config files are untouched.
Here is a snippet of the log:
13:50:30 Verbose | Extracting package to: C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1
13:50:30 Verbose | Extracted 79 files
13:50:30 Info | Performing variable substitution on 'C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\app.IT2-STUB.config’
13:50:30 Info | Transforming ‘C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\B001_01_01Batch.exe.config’ using ‘C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\app.IT2-STUB.config’.
13:50:30 Verbose | Executing Replace (transform line 6, 70)
13:50:30 Verbose | on /configuration/SystemConfiguration/retrySettings/retrySetting[@id=‘B001_01_02’]
13:50:30 Verbose | Applying to ‘retrySetting’ element (source line 8, 8)
13:50:30 Verbose | Replaced ‘retrySetting’ element
13:50:30 Verbose | Done executing Replace
…
…
13:50:30 Verbose | Executing Replace (transform line 29, 49)
13:50:30 Verbose | on /configuration/appSettings/add[@key=‘Rfc.IsEnabledProxy’]
13:50:30 Verbose | Applying to ‘add’ element (source line 127, 6)
13:50:30 Verbose | Replaced ‘add’ element
13:50:30 Verbose | Done executing Replace
13:50:30 Verbose | Looking for appSettings, applicationSettings, and connectionStrings in any .config files
13:50:30 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\app.IT1-NOSTUB.config
13:50:31 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\app.IT1-STUB.config
13:50:31 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\app.IT2-NOSTUB.config
13:50:31 Verbose | File ‘C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\app.IT2-STUB.config’ was interpreted as an XML configuration transform; variable substitution won’t be attempted.
13:50:31 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\app.PRO-NOSTUB.config
13:50:31 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\app.ST-NOSTUB.config
13:50:31 Info | No matching appSetting, applicationSetting, nor connectionString names were found in: C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\app.ST-STUB.config
13:50:31 Info | Updating appSettings, applicationSettings, and connectionStrings in: C:\Octopus\Applications\Staging (IT2)\RFC-GW-Integrator\20160109.190-DeployPreparation_1\B001_01_01Batch.exe.config
…
As you can see from the log above, only B001_01_01Batch.exe.config is transformed.
I’m using the latest Octopus version 3.2.15. Any help would be much appreciated.