small fix

This commit is contained in:
Roberto Cirillo 2022-09-30 16:56:31 +02:00
parent ca74aeab83
commit 58fd9640df
1 changed files with 10 additions and 10 deletions

20
Jenkinsfile vendored
View File

@ -110,17 +110,17 @@ pipeline {
readCSV(file: 'CD/deploy.csv').each { line , count->
if (line.toString().startsWith('#'))
return
def fields = line.toString().split(',')
println(fields[0])
println(fields[1])
println(fields[2])
// def components.add([
// name : fields[0],
// version : fields[1],
// host : fields[2]
// ]
// )
// line.get(0);
// def fields = line.toString().split(',')
def components.add([
name : line.get(0),
version : line.get(1),
host : line.get(2)
]
)
}
//def records = readCSV file: 'CD/deploy.csv'
def components
println(components)
if (components.size() > 0) {
def componentSet=components.toSet();