From 6f27e2727401bba3d9e1e3375c2de2171d74a597 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Thu, 4 Aug 2022 17:22:09 +0200 Subject: [PATCH] remove file.getAbsolutePath method --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0b4879e..fb51f83 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -292,11 +292,11 @@ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){ def getComponentsFromCSVDir(def dirPath){ File folder = new File(dirPath) - println "folder ready ${folder.absolutePath}" + println "folder ready " folder.eachFileRecurse FileType.FILES, { file -> // check it if the file ends with a .csv extension if (file.name.endsWith(".csv")) { - println "Processing file ${file.absolutePath}" + println "Processing file " readFile(file).split('\n').each { line, count-> if (line.startsWith('#')) 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 file.delete(); }