| Would be great if we could support this, the resource (png) in my case have to be versioned, I could have separate project for them and expose as artifacts, but its quite an overhead. Another idea, as I see readFile/writeFile are exposing the encoding parameter, so maybe there is a way to set it in a way to maintain consistency?
def fileContents = readFile file: "test.txt", encoding: "UTF-8"
fileContents = fileContents.replace("hello", "world")
echo fileContents
writeFile file: "test.txt", text: fileContents, encoding: "UTF-8"
|