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
)
Originally reported by jielpe_fr38, imported from: writeFile : Add the possibility to add content
- status: Open
- priority: Minor
- component(s): workflow-basic-steps-plugin
- resolution: Unresolved
- votes: 0
- watchers: 1
- imported: 20251215-220547
Raw content of original issue
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
)
environment
Jenkins 2.319.3<br/>
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.
Originally reported by jielpe_fr38, imported from: writeFile : Add the possibility to add content
Raw content of original issue
environment