Fix paths for job report.
This commit is contained in:
parent
c4c5057886
commit
5d202f82e7
|
@ -157,9 +157,9 @@ pipeline {
|
||||||
echo -e "GroupID,ArtifactID,Version,SCM URL,Build Number,Distribution URL,Filename,Packaging" >> ${AGENT_ROOT_FOLDER}/build_commits.csv
|
echo -e "GroupID,ArtifactID,Version,SCM URL,Build Number,Distribution URL,Filename,Packaging" >> ${AGENT_ROOT_FOLDER}/build_commits.csv
|
||||||
|
|
||||||
#job report
|
#job report
|
||||||
echo "#Build ${PIPELINE_BUILD_NUMBER}" > $JOB_REPORT
|
echo "#Build ${PIPELINE_BUILD_NUMBER}" > ${JOB_REPORT}
|
||||||
echo "#StartTime ${date}" >> $JOB_REPORT
|
echo "#StartTime ${date}" >> ${JOB_REPORT}
|
||||||
echo -e "JobName,Status" >> $JOB_REPORT
|
echo -e "JobName,Status" >> ${JOB_REPORT}
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -170,7 +170,7 @@ pipeline {
|
||||||
if ( ("${resume}" == 'true') && (jobs['maven-parent'] == 'SUCCESS') ) {
|
if ( ("${resume}" == 'true') && (jobs['maven-parent'] == 'SUCCESS') ) {
|
||||||
echo "Skipping maven-parent"
|
echo "Skipping maven-parent"
|
||||||
// propagate success
|
// propagate success
|
||||||
sh "echo -e \\\"maven-parent,SUCCESS\\\">> $JOB_REPORT"
|
sh "echo -e \\\"maven-parent,SUCCESS\\\">> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||||
} else {
|
} else {
|
||||||
def gjob = build(job: 'maven-parent', wait: true, propagate: true,
|
def gjob = build(job: 'maven-parent', wait: true, propagate: true,
|
||||||
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_parent_file}"],
|
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_parent_file}"],
|
||||||
|
@ -242,7 +242,7 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path, jobs) {
|
||||||
if ( ("${resume}" == 'true') && (jobs["${name}"] == 'SUCCESS') ) {
|
if ( ("${resume}" == 'true') && (jobs["${name}"] == 'SUCCESS') ) {
|
||||||
echo "Skipping ${name}"
|
echo "Skipping ${name}"
|
||||||
// propagate success
|
// propagate success
|
||||||
sh "echo -e \\\"${name},SUCCESS\\\">> $JOB_REPORT"
|
sh "echo -e \\\"${name},SUCCESS\\\">> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||||
} else {
|
} else {
|
||||||
def gjob = build(job: name, wait: true, propagate: true,
|
def gjob = build(job: name, wait: true, propagate: true,
|
||||||
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_settings_file}"],
|
parameters: [[$class: 'StringParameterValue', name: 'gcube_settings', value: "${maven_settings_file}"],
|
||||||
|
|
Loading…
Reference in New Issue