generated from gCubeCI/Pipeline-Docker-Template
add folder delete
This commit is contained in:
parent
79abb3f26e
commit
28fa798768
|
@ -112,7 +112,6 @@ pipeline {
|
|||
if (files == null){
|
||||
println ("Nothing to do");
|
||||
}else{
|
||||
def toRemove = [] as ArrayList
|
||||
for (def file : files){
|
||||
echo """
|
||||
Found: ${file.name} with path ${file.path}
|
||||
|
@ -130,8 +129,9 @@ pipeline {
|
|||
}
|
||||
}
|
||||
sh "rm ${file.path}"
|
||||
}
|
||||
}
|
||||
}
|
||||
sh "rm -Rf ${deployFolder}"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue