generated from gCubeCI/Pipeline-Docker-Template
small fix
This commit is contained in:
parent
ca74aeab83
commit
58fd9640df
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue