Greetings,
I ran into an issue with transforms and wanted to suppress their errors. Per the documentation is says to set a system variable, Octopus.Action.Package.IgnoreConfigTransformationErrors, to true. To do this I added “custom deployment scripts” to my package process and added the line, $OctopusParameters[“Octopus.Action.Package.IgnoreConfigTransformationErrors”] = $true, to pre-deployment script. That didn’t seem to work so I removed the line from pre-deployment and added it to deployment, the errors still show. Please assist on what I am doing incorrectly.
Octopus 3.1.4
Error when deploying:
Transforming ‘d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.config’ using ‘d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.Release.config’.
09:37:48
Info
Transforming ‘d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.config’ using ‘d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.QA.config’.
09:37:48
Warning
File d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.QA.config, line 24, position 18:
09:37:48
Warning
Argument ‘debug’ did not match any attributes
09:37:48
Warning
File d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.config, line 70, position 6:
09:37:48
Warning
No attributes found to remove
09:37:48
Error
The XML configuration file d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.config failed with transformation file d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.QA.config.
09:37:48
Error
d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.config(70,6): No attributes found to remove
09:37:48
Error
Running rollback conventions…
09:37:48
Error
d:\Octopus\Applications\QA\Pulse.Web\1.0.114.1_3\Web.config(70,6): No attributes found to remove
09:37:48
Error
The remote script failed with exit code 1