From 90c536315edc183a74a826ed07260bd150a42b74 Mon Sep 17 00:00:00 2001 From: Manuele Simi Date: Wed, 11 Dec 2019 23:24:19 -0500 Subject: [PATCH] Use groovy var to read the file. --- Jenkinsfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d431b66..8aa4a29 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -139,7 +139,7 @@ pipeline { steps { script { sh 'cat ${PREVIOUS_JOB_REPORT}' - content = readFile ${PREVIOUS_JOB_REPORT} + content = readFile ${previous_report_file} println "CONTENT ${content}" content.splitEachLine(',') { columns -> if (columns[0].startsWith('#') || columns[0].startsWith('JobName')) @@ -177,8 +177,6 @@ pipeline { echo -e "GroupID,ArtifactID,Version,SCM URL,Build Number,Distribution URL,Filename,Packaging" >> ${AGENT_ROOT_FOLDER}/build_commits.csv #job report - cat ${PREVIOUS_JOB_REPORT} || echo "${PREVIOUS_JOB_REPORT} 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}