Do not use parseJobs.

This commit is contained in:
Manuele Simi 2019-12-11 23:14:11 -05:00
parent f3a0bb0a98
commit dabb399da9
1 changed files with 7 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -140,7 +140,11 @@ pipeline {
script {
sh 'cat ${PREVIOUS_JOB_REPORT}'
content = readFile ${PREVIOUS_JOB_REPORT}
jobs = parseJobs(content)
content.splitEachLine(',') { columns ->
if (columns[0].startsWith('#') || columns[0].startsWith('JobName'))
return
jobs["${columns[0]}"] = columns[1]
}
for (job in jobs)
println job
}