diff options
Diffstat (limited to 'meta-security/scripts')
-rwxr-xr-x | meta-security/scripts/ci-cleanup.sh | 7 | ||||
-rwxr-xr-x | meta-security/scripts/upload-error-report | 26 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-security/scripts/ci-cleanup.sh b/meta-security/scripts/ci-cleanup.sh new file mode 100755 index 000000000..df3b68f98 --- /dev/null +++ b/meta-security/scripts/ci-cleanup.sh @@ -0,0 +1,7 @@ +#! /bin/bash + +set -e + +export SSTATE_CACHE_DIR=/home/srv/sstate/master + +./poky/scripts/sstate-cache-management.sh -d -y diff --git a/meta-security/scripts/upload-error-report b/meta-security/scripts/upload-error-report new file mode 100755 index 000000000..56bd24e47 --- /dev/null +++ b/meta-security/scripts/upload-error-report @@ -0,0 +1,26 @@ +#!/bin/bash + +ERR_REPORT_USERNAME=$1 +ERR_REPORT_EMAIL=$2 +BUILDDIR=$3 + +shift +shift +shift + +if [ ! -e $BUILDDIR ]; then + exit 0 +fi + +cd $BUILDDIR/../poky + +if [ -d $BUILDDIR/tmp/log/error-report/ ]; then + echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error + echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error + + . ./oe-init-build-env $BUILDDIR + + for x in `ls $BUILDDIR/tmp/log/error-report/ | grep error_report_`; do + send-error-report -y tmp/log/error-report/$x + done +fi |