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")
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")