fix method

This commit is contained in:
Roberto Cirillo 2022-09-16 14:48:07 +02:00
parent 90ff91f07e
commit f3827aa956
1 changed files with 4 additions and 4 deletions

8
Jenkinsfile vendored
View File

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