diff --git a/Jenkinsfile b/Jenkinsfile index 9b2a084..d3df7c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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; } \ No newline at end of file