Hi, just don't use the pipeline groovy code for that , use suitable external tools (e.g. cat and shell pipes)
sh ``` cat part1 > file; cat part2 >> file ``` [1] has a recommendation: In general try to fit the tool to the job. Consider writing short Shell/Batch/Groovy/Python scripts when running a complex process using a build agent. Good examples include processing data, communicating interactively with REST APIs, and parsing/templating larger XML or JSON files. The sh and bat steps are helpful to invoke these, especially with returnStdout: true to return the output from this script and save it as a variable (Scripted Pipeline). The Pipeline DSL is not designed for arbitrary networking and computation tasks - it is intended for CI/CD scripting. [1] https://www.jenkins.io/doc/book/pipeline/scaling-pipeline/ Björn [email protected] schrieb am Donnerstag, 20. Mai 2021 um 05:42:51 UTC+2: > I have a situation where I'm piecing together a large file. Is there some > pipeline command for appending to a file? Trying to keep it in memory is > problematic. -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5c9bf6ce-35f1-4b47-ae31-b1e4d4ebcc79n%40googlegroups.com.
