Output to CSV.
This commit is contained in:
parent
146303c77f
commit
6c6a292cac
|
@ -120,7 +120,9 @@ pipeline {
|
||||||
mv "${AGENT_ROOT_FOLDER}/settings.xml" "${AGENT_ROOT_FOLDER}/settings.${PIPELINE_BUILD_NUMBER}"
|
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"
|
cp "${AGENT_ROOT_FOLDER}/${MAVEN_SETTINGS_FILE}" "${AGENT_ROOT_FOLDER}/settings.xml"
|
||||||
echo "Done with local repository and settings"
|
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 {
|
script {
|
||||||
sh '''
|
sh '''
|
||||||
mv "${AGENT_ROOT_FOLDER}/settings.${PIPELINE_BUILD_NUMBER}" "${AGENT_ROOT_FOLDER}/settings.xml"
|
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'
|
echo 'The default maven settings have been restored'
|
||||||
|
|
Loading…
Reference in New Issue