add NonCPS tag to the method

This commit is contained in:
Roberto Cirillo 2022-09-30 14:57:58 +02:00
parent 8842ea81bb
commit ccb34365ca
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -297,10 +297,10 @@ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){
//experimental test
//@NonCPS
@NonCPS
def getComponentsFromCSVDir(def dirPath){
// File folder = new File(dirPath)
folder= new FilePath(Jenkins.getInstance().getComputer(env['NODE_NAME']).getChannel(), 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);