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){
|
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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue