Adjust echo command.

This commit is contained in:
Manuele Simi 2019-12-07 22:34:53 -05:00
parent 5d90126807
commit 478ac55b21
1 changed files with 4 additions and 3 deletions

7
Jenkinsfile vendored
View File

@ -215,7 +215,9 @@ def buildComponents(args, maven_settings_file, maven_local_repo_path) {
[$class: 'StringParameterValue', name: 'local_repo', value: "${maven_local_repo_path}"],
[$class: 'LabelParameterValue', name: 'exec_label', label: "CD", nodeEligibility: [$class: 'AllNodeEligibility']]
])
echo -e "${name},${job.getResult()}" >> ${AGENT_ROOT_FOLDER}/build_jobs.${PIPELINE_BUILD_NUMBER}.csv
sh(script: "echo -e '${name},${job.getResult()}' >> ${AGENT_ROOT_FOLDER}/build_jobs.${PIPELINE_BUILD_NUMBER}.csv")
}]
}
}
@ -228,8 +230,7 @@ boolean wasSuccess(report, job_name) {
"${text}".splitEachLine(',') { columns ->
if (columns[0].startsWith('#') || columns[0].startsWith('JobName'))
return
echo "NAME: columns[0] STATUS: columns[1]"
println "NAME: ${columns[0]} STATUS: ${columns[1]}"
}
false;
}