diff --git a/Jenkinsfile b/Jenkinsfile index 56448e8..c035689 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -329,11 +329,11 @@ def getComponentsFromCSVDir2(def dirPath){ println ("folder ready "); if (folder){ println (" processing folder "+folder); - folder.eachFileRecurse( FileType.FILES) { - if (it.name.endsWith(".csv")) { + folder.eachFileRecurse FileType.FILES, { + if (file.name.endsWith(".csv")) { println ("Processing file "+it); - list << it - readFile(it).split('\n').each { line, count-> + list << file + readFile(file).split('\n').each { line, count-> if (line.startsWith('#')) return def fields = line.split(',')