yocto-autobuilder-helper/scripts/upload-error-reports
Richard Purdie 4239708b85 Add error reporting server handling
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 13:16:41 +00:00

20 lines
427 B
Bash
Executable File

#!/bin/bash
BUILDDIR=$1
ERRORLINK=$2
#https://autobuilder.yocto.io/builders/nightly-arm/builds/804
host=`hostname`
echo "yocto-autobuilder-autogenerated-$host" > ~/.oe-send-error
cd $BUILDDIR/../
. ./oe-init-build-env
if [ -d $BUILDDIR/tmp/log/error-report/ ]; then
for x in `ls $BUILDDIR/tmp/log/error-report/ | grep error_report_`; do
send-error-report -y -l $ERRORLINK tmp/log/error-report/$x
done
fi