diff --git a/Jenkinsfile b/Jenkinsfile index f6a6682..ae47224 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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();