jenkinsci / jenkinsci/workflow-basic-steps-plugin

[JENKINS-68187] writeFile : Add the possibility to add content

Open
#525 0 comments 0 reactions 0 assignees View on GitHub
component:workflow-basic-steps-plugin imported-jira-issue priority:minor resolution:unresolved
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


  • 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

Basic Steps 2.24
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.