From 23e05163692fa4e90ba5ca305a4282a074958ce2 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 26 Apr 2022 17:39:55 +0200 Subject: [PATCH] fixing parsing function --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3ef3883..33dfecd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,7 +60,6 @@ pipeline { } steps { echo 'Cron build enabled. Deploy from system ongoing' - echo 'Components to deploy:' script { // parse the report and extract the data def components = parseDeployComponent(deployList) @@ -143,7 +142,7 @@ pipeline { def parseDeployComponent(def deployList) { println "Going to parsing file ${deployList}" def components = [] - new File("${deployList}").splitEachLine(',') { columns -> + readFile(file: "${deployList}").splitEachLine(',') { columns -> if (columns[0].startsWith('#') || columns[0].startsWith('Component')) return components.add([