Check job report file earlier.
This commit is contained in:
parent
be8f943ab9
commit
f9bec52a71
|
@ -74,6 +74,8 @@ def jobs = [:]
|
|||
if (resume_from) {
|
||||
def previous_report_file = "${agent_root_folder}/build_jobs.${resume_from}.csv"
|
||||
echo "Previous report file: ${previous_report_file}"
|
||||
new File("${agent_root_folder}/build_jobs.${resume_from}.csv")
|
||||
|
||||
jobs = parseJobs(previous_report_file)
|
||||
if (verbose) {
|
||||
for (job in jobs)
|
||||
|
@ -160,6 +162,7 @@ pipeline {
|
|||
|
||||
#job report
|
||||
cat ${previous_report_file} || echo "${previous_report_file} not available"
|
||||
ls -lrt ${agent_root_folder}/
|
||||
echo "#Build ${PIPELINE_BUILD_NUMBER}" > ${JOB_REPORT}
|
||||
echo "#StartTime ${date}" >> ${JOB_REPORT}
|
||||
echo -e "JobName,Status" >> ${JOB_REPORT}
|
||||
|
|
Loading…
Reference in New Issue