-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins 2.361.2
Content Replace Version 1.7.0
Content Replace may eat a trailing newline on files, probably due to ContentReplaceBuilder.java#L147, where each line of the file is joined back together before writing to the filesystem-or where it was originally split on line 113, take your pick.
Trailing newlines are required for example with patch files which may otherwise be considered corrupt-there are relatively simple workarounds, but then why bother with an equally simple plugin?