jenkins 执行groivy 是在master上
def read_file(file_name){
def file_obj = new File(file_name)
file_content = file_obj.text
return file_content
}
def write_file(value,file_name){
def file_obj = new File(file_name)
file_obj.write(value)
}
jenkins 执行groivy 是在master上
def read_file(file_name){
def file_obj = new File(file_name)
file_content = file_obj.text
return file_content
}
def write_file(value,file_name){
def file_obj = new File(file_name)
file_obj.write(value)
}