-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins 2.319.3
Basic Steps 2.24
Currently when calling writeFile on an existing file, the content to write overwrites the existing content.
A boolean parameter (append ?) could be used to tell writeFile to add rather than erase. E.g.
writeFile( file:myLog.txt, text:'An additional information', append: true )
[JENKINS-68187] writeFile : Add the possibility to add content
Description |
Original:
Currently when calling writeFile on an existing file, the content to write overwrites the existing content.
A parameter could be used to tell writeFile to add rather than erase. E.g. writeFile( file:myLog.txt, text:'An additional information', |
New:
Currently when calling writeFile on an existing file, the content to write overwrites the existing content.
A parameter could be used to tell writeFile to add rather than erase. E.g. writeFile( [file:myLog.txt|file:///myLog.txt], text:'An additional information', _append: true_ |
Description |
Original:
Currently when calling writeFile on an existing file, the content to write overwrites the existing content.
A parameter could be used to tell writeFile to add rather than erase. E.g. writeFile( [file:myLog.txt|file:///myLog.txt], text:'An additional information', _append: true_ |
New:
Currently when calling writeFile on an existing file, the content to write overwrites the existing content.
A boolean parameter (append ?) could be used to tell writeFile to add rather than erase. E.g. {code:java} writeFile( file:myLog.txt, text:'An additional information', append: true ){code} |