How to update optional files with File Content Replacer?

Answered

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,

Jvs

1 comment

Hello,

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: https://youtrack.jetbrains.com/issue/TW-44293, please vote for it.

 
1

Please sign in to leave a comment.