commit: df06eb44fc33e4ba4701a750be68b2f57d7f836f
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 29 18:17:48 2024 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Thu Aug 29 18:17:48 2024 +0000
URL: https://gitweb.gentoo.org/proj/binhost.git/commit/?id=df06eb44
Upload build log on failure to a pastebin and include it in email
It appears to not be making it through the mirror syncing system, but I
haven't investigated why.
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
builders/jiji/binhost-update | 3 ++-
builders/milou/binhost-update | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/builders/jiji/binhost-update b/builders/jiji/binhost-update
index 4bb41e1..f2da664 100755
--- a/builders/jiji/binhost-update
+++ b/builders/jiji/binhost-update
@@ -24,7 +24,8 @@ send_email() {
local body
if [ -n "${logfile}" ]; then
- body=$(printf '%b\n\n\n' "${message}"; tail -n 500
"${logfile}"; printf '\n\n\nFull build log at %s\n' "${logfile}")
+ url=$(curl -F "_=@${logfile}" https://paste.gentoo.zip)
+ body=$(printf '%b\n\n\n' "${message}"; tail -n 500
"${logfile}"; printf '\n\n\nFull build log at %s (download: %s)\n' "${logfile}"
"${url}")
else
body=${message}
fi
diff --git a/builders/milou/binhost-update b/builders/milou/binhost-update
index 28669e2..8a304dd 100755
--- a/builders/milou/binhost-update
+++ b/builders/milou/binhost-update
@@ -41,7 +41,8 @@ send_email() {
local body
if [ -n "${logfile}" ]; then
- body=$(printf '%b\n\n\n' "${message}"; tail -n 500
"${logfile}"; printf '\n\n\nFull build log at %s\n' "${logfile}")
+ url=$(curl -F "_=@${logfile}" https://paste.gentoo.zip)
+ body=$(printf '%b\n\n\n' "${message}"; tail -n 500
"${logfile}"; printf '\n\n\nFull build log at %s (download: %s)\n' "${logfile}"
"${url}")
else
body=${message}
fi