diff options
author | Eli Schwartz <eschwartz@gentoo.org> | 2024-08-29 14:17:48 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@gentoo.org> | 2024-08-29 14:17:48 -0400 |
commit | df06eb44fc33e4ba4701a750be68b2f57d7f836f (patch) | |
tree | 9c589fa18788c3f2bc47328709d464b93475af70 | |
parent | tweak USE flags for meson CI (diff) | |
download | binhost-df06eb44fc33e4ba4701a750be68b2f57d7f836f.tar.gz binhost-df06eb44fc33e4ba4701a750be68b2f57d7f836f.tar.bz2 binhost-df06eb44fc33e4ba4701a750be68b2f57d7f836f.zip |
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@gentoo.org>
-rwxr-xr-x | builders/jiji/binhost-update | 3 | ||||
-rwxr-xr-x | 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 |