From 9f7b104220c502ae267df6b56e7458ef63fbd622 Mon Sep 17 00:00:00 2001 From: "roberto.cirillo" Date: Fri, 16 Sep 2022 11:36:11 +0200 Subject: [PATCH] add @NonCPS to method --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 1732f20..ae3eca8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -291,6 +291,7 @@ def cleanup(def DEPLOY_FILE, def BACKUP_FILE){ //experimental test + @NonCPS def getComponentsFromCSVDir(def dirPath){ File folder = new File(dirPath) println ("folder ready "); @@ -321,6 +322,7 @@ def getComponentsFromCSVDir(def dirPath){ return components } + @NonCPS def getComponentsFromCSVDir2(def dirPath){ def list = [] def folder = new File(dirPath) @@ -355,6 +357,7 @@ def getComponentsFromCSVDir2(def dirPath){ return components } + @NonCPS def getComponentsFromCSVDir3(def dirPath){ println "checking current folder" dh = new File('.')