From b5dbb869661d161f0bfbc95f38dfdcc1d5bc8ebf Mon Sep 17 00:00:00 2001 From: radius Date: Sat, 11 Apr 2015 17:22:12 -0400 Subject: [PATCH] add logging of errors to pastebin --- libretro-buildbot-recipe.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libretro-buildbot-recipe.sh b/libretro-buildbot-recipe.sh index f811b41a..f1f6dc91 100755 --- a/libretro-buildbot-recipe.sh +++ b/libretro-buildbot-recipe.sh @@ -1,3 +1,4 @@ + # vim: set ts=3 sw=3 noet ft=sh : bash ####usage: @@ -213,21 +214,24 @@ build_libretro_generic_makefile() { if [ "${NAME}" = "mame2010" ]; then echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}" buildtools - ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} buildtools + ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} buildtools | tee current.log fi echo "build command: ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS}" - ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} + ${MAKE} -f ${MAKEFILE} platform=${PLATFORM} -j${JOBS} ${ARGS} | tee current.log fi if [ $? -eq 0 ]; then - MESSAGE="$1 build successful ($jobid)" + MESSAGE="$1 build successful [$jobid]" if [ "${MAKEPORTABLE}" == "YES" ]; then echo "$1 running retrolink ($jobid)" $WORK/retrolink.sh ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} fi cp -v ${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} $RARCH_DIST_DIR/${DIST}/${NAME}_libretro${FORMAT}${SUFFIX}.${FORMAT_EXT} else - MESSAGE="$1 build failed ($jobid)" + ERROR=`cat current.log | tail -n 1000` + HASTE=`curl -XPOST http://hastebin.com/documents -d"$haste"` + MESSAGE="$1 build failed [$jobid] [LOG:$HASTE]" + fi echo BUILDBOT JOB: $MESSAGE buildbot_log "$MESSAGE"