How to update optional files with File Content Replacer?


Hi folks,

I’m using the TeamCity build feature ‘File content replacer’ to update resource files. The pattern used to select files to be updated is “**/*.rc”, this will update all .rc files. If the files to be updated are not available then the build fails with following error message:

[File Content Replacer] No files matching wildcard: **/*.rc
[File Content Replacer] No modifications were made: either no text matching the pattern was found or the replaced text is the same as the original

How do I configure the ‘File content replacer’ if I know files to be updated are optional?

Best regards,


1 comment
Comment actions Permalink


You can use Mute build problem action. If the problem is muted, it does not fail the future builds.
Also we have a feature request:, please vote for it.


Please sign in to leave a comment.