Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2018-12-20 10:24:22 -0500
committerSravan Kumar Lakkimsetti2018-12-20 10:24:22 -0500
commita9714e3fe53b4d5998d810e317547ac46b64ed5f (patch)
tree9d90cbbe10e685c0421a9ebacee92a3afd51c7ea /production/build-functions.shsource
parentb6da9a0f6996feb6e2a42a758b23f5aa7e46ca93 (diff)
downloadeclipse.platform.releng.aggregator-a9714e3fe53b4d5998d810e317547ac46b64ed5f.tar.gz
eclipse.platform.releng.aggregator-a9714e3fe53b4d5998d810e317547ac46b64ed5f.tar.xz
eclipse.platform.releng.aggregator-a9714e3fe53b4d5998d810e317547ac46b64ed5f.zip
Bug 541598 - Generate gitLog as html report
Change-Id: I416365c050573f9d004816ad3f83708934faa213 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
Diffstat (limited to 'production/build-functions.shsource')
-rwxr-xr-xproduction/build-functions.shsource6
1 files changed, 3 insertions, 3 deletions
diff --git a/production/build-functions.shsource b/production/build-functions.shsource
index bf03c22d..33e7995a 100755
--- a/production/build-functions.shsource
+++ b/production/build-functions.shsource
@@ -558,18 +558,18 @@ 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=\"cell\">%cd</td><td class=\"cell\"><a href=\"https://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?id=%H\">%s</a></td><td class=\"cell\">%aN</td></tr>">> ${TMP_GIT_LOG}
+ 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}
FILESIZE1=$(stat -c%s ${TMP_GIT_LOG})
if [ $FILESIZE1 -eq 0 ]
then
echo "<h3>No code changes from last build</h3>"
else
echo "<table width=\"80%\"><tbody> <tr><th class=\"cell\" colspan=\"3\">Repository: eclipse.platform.releng.aggregator</th></tr>" >> ${GITLOG_FILE}
- echo "<tr> <th class=\"cell\">Date</th> <th class=\"cell\">Summary</th> <th class=\"cell\">Author</th> </tr>" >> ${GITLOG_FILE}
+ echo "<tr> <th class=\"datecell\">Date</th> <th class=\"commitcell\">Commit message</th> <th class=\"authorcell\">Author</th> </tr>" >> ${GITLOG_FILE}
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=\\\"cell\\\">%cd</td><td class=\\\"cell\\\"><a href=\\\"https://git.eclipse.org/c/\$comp/\$path.git/commit/?id=%H\\\">%s</a></td><td class=\\\"cell\\\">%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=\\\"cell\\\">Date</th> <th class=\\\"cell\\\">Summary</th> <th class=\\\"cell\\\">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} --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