Adjust path for previous report file.
This commit is contained in:
parent
d04abeab48
commit
447e8dde0a
|
@ -71,10 +71,12 @@ if (verbose) {
|
|||
}
|
||||
|
||||
def report_number = env.BUILD_NUMBER -1
|
||||
def jobs = parseJobs("${agent_root_folder}/build_jobs.${report_number}.csv")
|
||||
for (job in jobs) {
|
||||
println "$job"
|
||||
}
|
||||
def previous_report_file = "${agent_root_folder}/build_jobs.${report_number}.csv"
|
||||
echo "Previous report file: ${previous_report_file}"
|
||||
def jobs = parseJobs(previous_report_file)
|
||||
for (job in jobs)
|
||||
println job
|
||||
|
||||
|
||||
pipeline {
|
||||
|
||||
|
@ -99,7 +101,7 @@ pipeline {
|
|||
TYPE = "${params.Type}"
|
||||
RESUME = "${params.resume}"
|
||||
JOB_REPORT = "${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||
PREVIOUS_JOB_REPORT = "${agent_root_folder}/build_jobs.${env.BUILD_NUMBER -1}.csv"
|
||||
PREVIOUS_JOB_REPORT = "${previous_report_file}"
|
||||
}
|
||||
|
||||
// see https://jenkins.io/doc/book/pipeline/syntax/#parameters
|
||||
|
|
Loading…
Reference in New Issue