What is the best way to write/modify a *.yaml file in Groovy?
I would like to modify the version maintained in a yaml file within my jenkins pipeline job. With readYaml
I can get the content, but how can I write it back again?
One way that comes to my mind would be to do a sed
on the file. But I think thats not very accurate.