diff --git a/Jenkinsfile b/Jenkinsfile index 4fcb4c4..d3601d4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -72,7 +72,7 @@ pipeline { echo 'Cron build enabled. Deploy from system ongoing' script { // parse the report and extract the data - def components = parseCSVList(deployList) + def components = estractComponentsFromCSV(deployList) if (components.size() > 0) { for (component in components) { stage(component){ @@ -177,8 +177,8 @@ pipeline { } -//parse a csv file formatted in this way: ComponentName,ComponentVersion -def parseCSVList(def deployList) { +//parse a csv file formatted in this way: ComponentName,ComponentVersion, ComponentHost +def estractComponentsFromCSV(def deployList) { def components = [] if (fileExists("${deployList}")) { echo 'file found'