Fix echo syntax.
This commit is contained in:
parent
d178e328b1
commit
d4534fea88
|
@ -173,7 +173,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">> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
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}"],
|
||||||
|
@ -181,7 +181,7 @@ pipeline {
|
||||||
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
|
||||||
])
|
])
|
||||||
echo "Job report file: ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
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"
|
sh "echo -e maven-parent,${gjob.getResult()} >> ${agent_root_folder}/build_jobs.${env.BUILD_NUMBER}.csv"
|
||||||
echo "Done with maven-parent"
|
echo "Done with maven-parent"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue