def read(String filePath) { def pipelineCfg = readYaml(file: filePath) return pipelineCfg } def merge(Object project, Object global) { def result = global.clone() project.each { key, value -> if (value instanceof Map && result[key] instanceof Map) { result[key] = merge(value, result[key]) } else { result[key] = value } } return result } return this