Change the scope of the report.
This commit is contained in:
parent
31c46b8fbd
commit
71aeb70365
|
@ -71,8 +71,9 @@ if (verbose) {
|
||||||
}
|
}
|
||||||
|
|
||||||
def jobs = [:]
|
def jobs = [:]
|
||||||
|
def previous_report_file = ''
|
||||||
if (resume_from) {
|
if (resume_from) {
|
||||||
def previous_report_file = "${agent_root_folder}/build_jobs.${resume_from}.csv"
|
previous_report_file = "${agent_root_folder}/build_jobs.${resume_from}.csv"
|
||||||
echo "Previous report file: ${previous_report_file}"
|
echo "Previous report file: ${previous_report_file}"
|
||||||
jobs = parseJobs(previous_report_file)
|
jobs = parseJobs(previous_report_file)
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
|
@ -270,7 +271,7 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path, jobs) {
|
||||||
@NonCPS
|
@NonCPS
|
||||||
def parseJobs(job_file) {
|
def parseJobs(job_file) {
|
||||||
def jobs = [:]
|
def jobs = [:]
|
||||||
try {
|
//try {
|
||||||
def content = readFile file:job_file
|
def content = readFile file:job_file
|
||||||
println content
|
println content
|
||||||
content.splitEachLine(',') { columns ->
|
content.splitEachLine(',') { columns ->
|
||||||
|
@ -278,8 +279,8 @@ def parseJobs(job_file) {
|
||||||
return
|
return
|
||||||
jobs["${columns[0]}"] = columns[1]
|
jobs["${columns[0]}"] = columns[1]
|
||||||
}
|
}
|
||||||
} catch(Exception e) {
|
//} catch(Exception e) {
|
||||||
println "Previous job report not available"
|
// println "Previous job report not available"
|
||||||
}
|
//}
|
||||||
jobs;
|
jobs;
|
||||||
}
|
}
|
Loading…
Reference in New Issue