I’ve just installed the latest Octopus 3.5.9 (upgrade from ~3.4.14) and my transformations that use wildcards suddenly stopped working with
Could not transform the file 'C:\Octopus\Applications\Test\DEV\Agent.WinSvc\1.2.20.0\Agent.nlog_octopus.config' using the pattern 'Agent.*.octopus.config'.
System.ArgumentException: Illegal characters in path.
I didn’t make any changes from previous releases that finished successfully in previous Octopus server version.
It looks like you perform path validation too early before resolving wildcards.
Also error message itself is strange because according the pattern file ‘Agent.nlog_octopus.config’ should not be transformed - it’s a transformation that should be applied.
In 3.5.4, we did some work to improve the diagnostics messages around configuration transforms, and in the process it looks like I broke it for your scenario. Sorry that we’ve let you down.
Can you set a variable Octopus.Action.Package.EnableDiagnosticsConfigTransformationLogging to True on your project and redeploy? That should give me lots more information on the issue.
In the meantime, I’ll look into it based on the information you’ve provided so far, and hopefully we can get a fix out for you ASAP.