Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2018-12-21 05:49:31 -0500
committerSravan Kumar Lakkimsetti2018-12-21 05:55:37 -0500
commitd0a1174c46b8dcb94b943dd4993d9344a80f10d4 (patch)
treeb84b5867b1407fb93da5b186f79ad5d546d2d751 /production/build-functions.shsource
parent63da3410cb37c2fe50321ca28f2c802e14f91d12 (diff)
downloadeclipse.platform.releng.aggregator-d0a1174c46b8dcb94b943dd4993d9344a80f10d4.tar.gz
eclipse.platform.releng.aggregator-d0a1174c46b8dcb94b943dd4993d9344a80f10d4.tar.xz
eclipse.platform.releng.aggregator-d0a1174c46b8dcb94b943dd4993d9344a80f10d4.zip
Bug 541598 - Generate gitLog as html report
Change-Id: I6932943f6275f57097b0a41860d01489ce908a75 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Diffstat (limited to 'production/build-functions.shsource')
-rwxr-xr-xproduction/build-functions.shsource4
1 files changed, 2 insertions, 2 deletions
diff --git a/production/build-functions.shsource b/production/build-functions.shsource
index 33e7995a..65e41e29 100755
--- a/production/build-functions.shsource
+++ b/production/build-functions.shsource
@@ -558,7 +558,7 @@ fn-tag-build-inputs ()
TMP_GIT_LOG=${TMP_DIR}/gitlog.txt
echo -e "<h2>Git log from ${lastTag} (previous) to ${BUILD_ID} (current)</h2>" > ${GITLOG_FILE}
echo -e "<h2>The tagging, and this report, were done at about $REPORTTIMESTAMP</h2>" >> ${GITLOG_FILE}
- git log ${lastTag}..${BUILD_ID} --format=format:"<tr><td class=\"datecell\">%cd</td><td class=\"commitcell\"><a href=\"https://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?id=%H\">%s</a></td><td class=\"authorcell\">%aN</td></tr>">> ${TMP_GIT_LOG}
+ git log ${lastTag}..${BUILD_ID} --date=short --format=format:"<tr><td class=\"datecell\">%cd</td><td class=\"commitcell\"><a href=\"https://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?id=%H\">%s</a></td><td class=\"authorcell\">%aN</td></tr>">> ${TMP_GIT_LOG}
FILESIZE1=$(stat -c%s ${TMP_GIT_LOG})
if [ $FILESIZE1 -eq 0 ]
then
@@ -569,7 +569,7 @@ fn-tag-build-inputs ()
cat ${TMP_GIT_LOG} >> ${GITLOG_FILE}
echo "</tbody></table><br><br>">> ${GITLOG_FILE}
echo >> ${GITLOG_FILE}
- git submodule --quiet foreach "comp=\$(echo \$path|cut -d. -f2);git log ${lastTag}..${BUILD_ID} --format=format:\"<tr><td class=\\\"datecell\\\">%cd</td><td class=\\\"commitcell\\\"><a href=\\\"https://git.eclipse.org/c/\$comp/\$path.git/commit/?id=%H\\\">%s</a></td><td class=\\\"authorcell\\\">%aN</td></tr>\">${TMP_GIT_LOG};FILESIZE=\$(stat -c%s ${TMP_GIT_LOG});if [ \$FILESIZE -ne 0 ]; then echo \"<table width=\\\"80%\\\"><tbody> <tr><th class=\\\"cell\\\" colspan=\\\"3\\\">Repository: \$path</th></tr>\";echo \"<tr> <th class=\\\"datecell\\\">Date</th> <th class=\\\"commitcell\\\">Commit message</th> <th class=\\\"authorcell\\\">Author</th> </tr>\";cat ${TMP_GIT_LOG};echo \"</tbody></table><br><br>\";echo;fi" >> ${GITLOG_FILE}
+ git submodule --quiet foreach "comp=\$(echo \$path|cut -d. -f2);git log ${lastTag}..${BUILD_ID} --date=short --format=format:\"<tr><td class=\\\"datecell\\\">%cd</td><td class=\\\"commitcell\\\"><a href=\\\"https://git.eclipse.org/c/\$comp/\$path.git/commit/?id=%H\\\">%s</a></td><td class=\\\"authorcell\\\">%aN</td></tr>\">${TMP_GIT_LOG};FILESIZE=\$(stat -c%s ${TMP_GIT_LOG});if [ \$FILESIZE -ne 0 ]; then echo \"<table width=\\\"80%\\\"><tbody> <tr><th class=\\\"cell\\\" colspan=\\\"3\\\">Repository: \$path</th></tr>\";echo \"<tr> <th class=\\\"datecell\\\">Date</th> <th class=\\\"commitcell\\\">Commit message</th> <th class=\\\"authorcell\\\">Author</th> </tr>\";cat ${TMP_GIT_LOG};echo \"</tbody></table><br><br>\";echo;fi" >> ${GITLOG_FILE}
fi
else
echo -e "\n\tGit log not generated because a reasonable previous tag could not be found." > ${GITLOG_FILE}

Back to the top