fixing parsing function

This commit is contained in:
Roberto Cirillo 2022-04-26 17:39:55 +02:00
parent 4f6ab3dfcd
commit 23e0516369
1 changed files with 1 additions and 2 deletions

3
Jenkinsfile vendored
View File

@ -60,7 +60,6 @@ pipeline {
} }
steps { steps {
echo 'Cron build enabled. Deploy from system ongoing' echo 'Cron build enabled. Deploy from system ongoing'
echo 'Components to deploy:'
script { script {
// parse the report and extract the data // parse the report and extract the data
def components = parseDeployComponent(deployList) def components = parseDeployComponent(deployList)
@ -143,7 +142,7 @@ pipeline {
def parseDeployComponent(def deployList) { def parseDeployComponent(def deployList) {
println "Going to parsing file ${deployList}" println "Going to parsing file ${deployList}"
def components = [] def components = []
new File("${deployList}").splitEachLine(',') { columns -> readFile(file: "${deployList}").splitEachLine(',') { columns ->
if (columns[0].startsWith('#') || columns[0].startsWith('Component')) if (columns[0].startsWith('#') || columns[0].startsWith('Component'))
return return
components.add([ components.add([