From 45c63abf0f34d4ec0977f3660ae0ae1b9752b9d9 Mon Sep 17 00:00:00 2001 From: Roberto Cirillo Date: Tue, 26 Apr 2022 18:10:23 +0200 Subject: [PATCH] clean code --- Jenkinsfile | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7963d5e..04b5337 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -156,21 +156,3 @@ def parseDeployComponent(def deployList) { return components } -//a non CPS method is necessary for the usage of splitEachLine() -@NonCPS -def oldparseDeployComponentOld(def deployList) { - println "Going to parsing file ${deployList}" - def components = [] - "${deployList}".splitEachLine(',') { columns -> - if (columns[0].startsWith('#') || columns[0].startsWith('GroupID')) - return - components.add([ - name : columns[1], - version : columns[2], - gitRepo : columns[3], - commitID: columns[4] - ] - ) - } - return components -} \ No newline at end of file