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 {
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([