summaryrefslogtreecommitdiffstats
path: root/meta/classes/buildhistory.bbclass
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-04-01 00:06:43 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-02 04:31:47 +0100
commitbcd3db5b027d60f8ffbd33e3ed0e4c35ae41cfab (patch)
tree6d08dc37d3c6a10cedc3595650275946a3621c0c /meta/classes/buildhistory.bbclass
parent7e7600f0ffcca2fa670d0475d5a5d0c2194ec107 (diff)
downloadpoky-bcd3db5b027d60f8ffbd33e3ed0e4c35ae41cfab.tar.gz
buildhistory: record all builds
When nothing has changed an empty commit prefixed with "No changes" will get generated so that the commit log of the buildhistory repo provides a complete log of all builds performed, not just those that resulted in changes. (From OE-Core rev: 2e40558cc33c5c566a9a742c32eda3ea017f8607) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r--meta/classes/buildhistory.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 386c32cc67..2224340728 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -405,6 +405,8 @@ buildhistory_commit() {
405 if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then 405 if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then
406 git push -q ${BUILDHISTORY_PUSH_REPO} 406 git push -q ${BUILDHISTORY_PUSH_REPO}
407 fi 407 fi
408 else
409 git commit ${BUILDHISTORY_DIR}/ --allow-empty -m "No changes: Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null
408 fi) || true 410 fi) || true
409} 411}
410 412