fixing parsing function

This commit is contained in:
Roberto Cirillo 2022-04-26 16:40:12 +02:00
parent a3d11b44c5
commit 0af35b9518
1 changed files with 13 additions and 10 deletions

23
Jenkinsfile vendored
View File

@ -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
}