generated from gCubeCI/Pipeline-Docker-Template
small fix
This commit is contained in:
parent
3cf615d21c
commit
b30a726d2a
|
@ -107,19 +107,30 @@ pipeline {
|
||||||
println "Going to check the deploy file in ${DEPLOY_FILE_ROOT_FOLDER}"
|
println "Going to check the deploy file in ${DEPLOY_FILE_ROOT_FOLDER}"
|
||||||
//def components =getComponentsFromCSVDir("${WORKSPACE}/CD")
|
//def components =getComponentsFromCSVDir("${WORKSPACE}/CD")
|
||||||
//def components = readCSV file: 'CD/deploy.csv'
|
//def components = readCSV file: 'CD/deploy.csv'
|
||||||
readCSV(file: 'CD/deploy.csv').each { line , count->
|
//readCSV(file: 'CD/deploy.csv').each { line , count->
|
||||||
if (line.toString().startsWith('#'))
|
// if (line.toString().startsWith('#'))
|
||||||
return
|
// return
|
||||||
// line.get(0);
|
// line.get(0);
|
||||||
// def fields = line.toString().split(',')
|
// 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'
|
||||||
|
for (def record : records) {
|
||||||
|
println("Processing record: "+record)
|
||||||
|
if (record.toString().startsWith('#')) return;
|
||||||
def components.add([
|
def components.add([
|
||||||
name : line.get(0),
|
name : record.get(0),
|
||||||
version : line.get(1),
|
version : record.get(1),
|
||||||
host : line.get(2)
|
host : record.get(2)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
//def records = readCSV file: 'CD/deploy.csv'
|
|
||||||
println(components)
|
println(components)
|
||||||
if (components.size() > 0) {
|
if (components.size() > 0) {
|
||||||
def componentSet=components.toSet();
|
def componentSet=components.toSet();
|
||||||
|
|
Loading…
Reference in New Issue