Add start time header to build_commits.csv.

This commit is contained in:
Manuele Simi 2019-10-21 22:37:00 -04:00
parent 6c6a292cac
commit da41ff2929
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -120,7 +120,8 @@ 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"
echo "#Build #${PIPELINE_BUILD_NUMBER}" > ${AGENT_ROOT_FOLDER}/build_commits.csv
echo "#Build ${PIPELINE_BUILD_NUMBER}" > ${AGENT_ROOT_FOLDER}/build_commits.csv
echo "#Start time ${currentBuild.startTimeInMillis}" >> ${AGENT_ROOT_FOLDER}/build_commits.csv
echo -e "URL,Version,Build Number" >> ${AGENT_ROOT_FOLDER}/build_commits.csv
'''