Output to CSV.

This commit is contained in:
Manuele Simi 2019-10-21 22:24:32 -04:00
parent 146303c77f
commit 6c6a292cac
1 changed files with 4 additions and 2 deletions

6
Jenkinsfile vendored
View File

@ -120,7 +120,9 @@ pipeline {
mv "${AGENT_ROOT_FOLDER}/settings.xml" "${AGENT_ROOT_FOLDER}/settings.${PIPELINE_BUILD_NUMBER}"
cp "${AGENT_ROOT_FOLDER}/${MAVEN_SETTINGS_FILE}" "${AGENT_ROOT_FOLDER}/settings.xml"
echo "Done with local repository and settings"
cat "Build #${PIPELINE_BUILD_NUMBER}" > ${AGENT_ROOT_FOLDER}/build_commits.txt
echo "#Build #${PIPELINE_BUILD_NUMBER}" > ${AGENT_ROOT_FOLDER}/build_commits.csv
echo -e "URL,Version,Build Number" >> ${AGENT_ROOT_FOLDER}/build_commits.csv
'''
}
}
@ -243,7 +245,7 @@ pipeline {
script {
sh '''
mv "${AGENT_ROOT_FOLDER}/settings.${PIPELINE_BUILD_NUMBER}" "${AGENT_ROOT_FOLDER}/settings.xml"
mv ${AGENT_ROOT_FOLDER}/build_commits.txt ${AGENT_ROOT_FOLDER}/build_commits.${PIPELINE_BUILD_NUMBER}
mv ${AGENT_ROOT_FOLDER}/build_commits.csv ${AGENT_ROOT_FOLDER}/../build_commits.${PIPELINE_BUILD_NUMBER}.csv
'''
}
echo 'The default maven settings have been restored'