replace File with FilePath

This commit is contained in:
Roberto Cirillo 2022-09-29 15:53:00 +02:00
parent 670451a028
commit 3f607a0ac4
1 changed files with 3 additions and 2 deletions

5
Jenkinsfile vendored
View File

@ -295,9 +295,10 @@ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){
//experimental test
@NonCPS
//@NonCPS
def getComponentsFromCSVDir(def dirPath){
File folder = new File(dirPath)
// File folder = new File(dirPath)
folder= new FilePath(Jenkins.getInstance().getComputer(env['NODE_NAME']).getChannel(), dirPath);
println ("folder ready ");
if (folder){
println (" processing folder "+folder);