mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
7e7600f0ff
commit
bcd3db5b02
@@ -405,6 +405,8 @@ buildhistory_commit() {
|
|||||||
if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then
|
if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then
|
||||||
git push -q ${BUILDHISTORY_PUSH_REPO}
|
git push -q ${BUILDHISTORY_PUSH_REPO}
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
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
|
||||||
fi) || true
|
fi) || true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user