generated from gCubeCI/Pipeline-Docker-Template
remove file.getAbsolutePath method
This commit is contained in:
parent
dfc6899bd6
commit
6f27e27274
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue