Write to file with Jenkins and Groovy Write to file with Jenkins and Groovy jenkins jenkins

Write to file with Jenkins and Groovy


Is this what you want then?

Groovy + how to append text in file ( new line )

f = new File('<filename>')f.append("spec.version               = ${VERSION_NUMBER}\n")