Skip to content

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

@jenkins-infra-bot

Description

@jenkins-infra-bot

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

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions