yocto-autobuilder-helper/scripts/upload-error-reports
Richard Purdie 8bae4b2955 run-config/upload-error-reports: Handle builddir not existing
This fixes failures on the buildperf workers which do early cleanup of build
directories.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-12-12 13:02:57 +00:00

533 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

if [ ! -e $BUILDDIR ]; then exit 0 fi

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