remove file.getAbsolutePath method

This commit is contained in:
Roberto Cirillo 2022-08-04 17:22:09 +02:00
parent dfc6899bd6
commit 6f27e27274
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -292,11 +292,11 @@ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){
def getComponentsFromCSVDir(def dirPath){ def getComponentsFromCSVDir(def dirPath){
File folder = new File(dirPath) File folder = new File(dirPath)
println "folder ready ${folder.absolutePath}" println "folder ready "
folder.eachFileRecurse FileType.FILES, { file -> folder.eachFileRecurse FileType.FILES, { file ->
// check it if the file ends with a .csv extension // check it if the file ends with a .csv extension
if (file.name.endsWith(".csv")) { if (file.name.endsWith(".csv")) {
println "Processing file ${file.absolutePath}" println "Processing file "
readFile(file).split('\n').each { line, count-> readFile(file).split('\n').each { line, count->
if (line.startsWith('#')) if (line.startsWith('#'))
return return
@ -309,7 +309,7 @@ def getComponentsFromCSVDir(def dirPath){
) )
} }
} }
println "removing current deploy file ${file.absolutePath}" println "removing current deploy file"
// remove the file here if possible // remove the file here if possible
file.delete(); file.delete();
} }