diff --git a/gitLog.bat b/gitLog.bat index 1f9a1a39c..5358c79e3 100644 --- a/gitLog.bat +++ b/gitLog.bat @@ -1 +1 @@ -git log --pretty="%s" >> changeLog.txt \ No newline at end of file +git log --pretty="%s" --since="`date -r ./../lastSuccessful/build.xml "+%F %T"`" >> changeLog.txt \ No newline at end of file diff --git a/gitLog.sh b/gitLog.sh index a74baa80c..5358c79e3 100644 --- a/gitLog.sh +++ b/gitLog.sh @@ -1,13 +1 @@ -#!/bin/sh -GIT_LOG_FORMAT="%ai %an: %s" -USER= -API_TOKEN= - -LAST_SUCCESS_URL_SUFFIX="lastSuccessfulBuild/api/xml" -#JOB_URL gets populated by Jenkins as part of the build environment -URL="$JOB_URL$LAST_SUCCESS_URL_SUFFIX" - -LAST_SUCCESS_REV=$(curl --silent --user $USER:$API_TOKEN $URL | grep "" | sed 's|.*.*\(.*\).*.*|\1|') -# Pulls all commit comments since the last successfully built revision -LOG=$(git log --pretty="$GIT_LOG_FORMAT" $LAST_SUCCESS_REV..HEAD) -echo $LOG \ No newline at end of file +git log --pretty="%s" --since="`date -r ./../lastSuccessful/build.xml "+%F %T"`" >> changeLog.txt \ No newline at end of file