jenkinsci / jenkinsci/workflow-basic-steps-plugin
[JENKINS-68187] writeFile : Add the possibility to add content
- Dominant language
- Java
- Stars
- 73
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
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
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
Basic Steps 2.24
```
Contributor guide
Assessment
This issue has not been assessed yet.