Do not use parseJobs.
This commit is contained in:
parent
f3a0bb0a98
commit
dabb399da9
|
@ -140,7 +140,11 @@ pipeline {
|
||||||
script {
|
script {
|
||||||
sh 'cat ${PREVIOUS_JOB_REPORT}'
|
sh 'cat ${PREVIOUS_JOB_REPORT}'
|
||||||
content = readFile ${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)
|
for (job in jobs)
|
||||||
println job
|
println job
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue