yocto-autobuilder-helper/scripts/upload-error-reports
Richard Purdie 004d403b6a upload-error-reports: Shorted name since server has a 50 char limit
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-07-04 10:45:29 +01:00

23 lines
490 B
Bash
Executable File

#!/bin/bash
BUILDDIR=$1
ERRORLINK=$2
#https://autobuilder.yocto.io/builders/nightly-arm/builds/804
# Need to clear parameters ready to source the environment below
shift
shift
cd $BUILDDIR/../
if [ -d $BUILDDIR/tmp/log/error-report/ ]; then
host=`hostname`
echo "yp-ab-$host" > ~/.oe-send-error
. ./oe-init-build-env
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