diff --git a/Jenkinsfile b/Jenkinsfile index ccf7964..2769388 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -147,15 +147,18 @@ pipeline { @NonCPS def parseDeployComponent(def deployList) { println "Going to parsing file ${deployList}" - def components = [] - "${deployList}".splitEachLine(',') { columns -> -// if (columns[0].startsWith('#') || columns[0].startsWith('Component')) -// return - components.add([ - name : columns[1], - version : columns[2] - ] - ) + new File("${deployList}").splitEachLine(',') { + fields -> println fields[0] +" " + fields[1] } - return components +// def components = [] +// "${deployList}".splitEachLine(',') { columns -> +// // if (columns[0].startsWith('#') || columns[0].startsWith('Component')) +// // return +// components.add([ +// name : columns[1], +// version : columns[2] +// ] +// ) +// } +// return components }