Additional XML transforms pattern mismatch - why?

I’m having a problem understanding why this additional XML config transformation is failing to match:
App.#{Octopus.Environment.Name}.config => *Job.dll.config

Here’s the output with diagnostics logging:

Found config file ‘C:\Octopus\Work\20221213055636-94221-606\staging\app_data\jobs\continuous\monitoringjob\MyCompany.MonitoringJob.dll.config’
05:56:40 Verbose | - checking against transform ‘App.Integration.config => *Job.dll.config’
05:56:40 Verbose | - Skipping as file name ‘MyCompany.MonitoringJob.dll.config’ does not match the target pattern ‘*Job.dll.config’

To me the wildcard stands for any string, “MyCompany.Monitoring” in this case, yet Octopus claims otherwise. Why?

Hi Jedrzej,

Thanks for getting in touch!

The wildcard will only work for a full string match rather than a partial one.

So, MyCompany.Monitoring.Job.dll.config with the pattern *.Job.dll.config should work or MyCompany.MonitoringJob.dll.config with the pattern *.MonitoringJob.dll.config

Regards,
Paul

Thanks a lot for the clarification, Paul!

2 Likes

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.