Check job report file earlier.

This commit is contained in:
Manuele Simi 2019-12-11 21:27:17 -05:00
parent be8f943ab9
commit f9bec52a71
1 changed files with 3 additions and 0 deletions

3
Jenkinsfile vendored
View File

@ -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}