2017-08-23 52 views

回答

0

下面是我找到了解決辦法。

writeFile file: env.WORKSPACE+"/usefulfile.txt", text: "Apple will be in 1st line" 

def readContent = readFile env.WORKSPACE+"/usefulfile.txt" 

writeFile file: env.WORKSPACE+"/usefulfile.txt", text: readContent +"\r\nOrange will be in 2nd line" 
相關問題