Do not use parseJobs.
This commit is contained in:
parent
f3a0bb0a98
commit
dabb399da9
|
@ -140,9 +140,13 @@ pipeline {
|
|||
script {
|
||||
sh 'cat ${PREVIOUS_JOB_REPORT}'
|
||||
content = readFile ${PREVIOUS_JOB_REPORT}
|
||||
jobs = parseJobs(content)
|
||||
for (job in jobs)
|
||||
println job
|
||||
content.splitEachLine(',') { columns ->
|
||||
if (columns[0].startsWith('#') || columns[0].startsWith('JobName'))
|
||||
return
|
||||
jobs["${columns[0]}"] = columns[1]
|
||||
}
|
||||
for (job in jobs)
|
||||
println job
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue