Set the output job report from the groovy env.
This commit is contained in:
parent
a720c5ea73
commit
539b8aaa33
|
@ -47,7 +47,7 @@ echo "Use local repo at ${maven_local_repo_path}"
|
|||
echo "Release number: ${params.gCube_release_version}"
|
||||
echo "Clean up gcube local artifacts? ${params.cleanup_gcube_artifacts}"
|
||||
echo "Clean up all local artifacts? ${params.cleanup_local_repo}"
|
||||
echo "Resume from previous build? ${params.resume}"
|
||||
echo "Resume from previous build? ${params.resume_from}"
|
||||
|
||||
|
||||
//locate the release file
|
||||
|
@ -177,7 +177,8 @@ pipeline {
|
|||
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
|
||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||
])
|
||||
sh "echo -e \\\"maven-parent,${gjob.getResult()}\\\">> $JOB_REPORT"
|
||||
echo "Job report file: ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||
sh "echo -e \\\"maven-parent,${gjob.getResult()}\\\" >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||
echo "Done with maven-parent"
|
||||
}
|
||||
|
||||
|
@ -248,7 +249,8 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path, jobs) {
|
|||
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
|
||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||
])
|
||||
sh "echo -e \\\"${name},${gjob.getResult()}\\\" >> $JOB_REPORT"
|
||||
echo "Job report file: ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||
sh "echo -e \\\"${name},${gjob.getResult()}\\\" >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -258,7 +260,7 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path, jobs) {
|
|||
}
|
||||
|
||||
/**
|
||||
Check if the job was successfully completed in teh given report.
|
||||
Loads the jobs from the given report.
|
||||
*/
|
||||
@NonCPS
|
||||
def parseJobs(job_file) {
|
||||
|
|
Loading…
Reference in New Issue