yocto-autobuilder-helper/scripts/upload-error-reports
Richard Purdie a7ca61715d upload-error-reports: Fix parameter contamination problem
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-05 22:45:08 +00:00

516 B
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 "yocto-autobuilder-autogenerated-$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