Fix echo syntax.

This commit is contained in:
Manuele Simi 2019-12-10 22:58:19 -05:00
parent d178e328b1
commit d4534fea88
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -173,7 +173,7 @@ pipeline {
if ( ("${resume}" == 'true') && (jobs['maven-parent'] == 'SUCCESS') ) {
echo "Skipping maven-parent"
// 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 {
def gjob = build(job: 'maven-parent', wait: true, propagate: true,
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']]
])
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"
}