From: Khouloud Touil Date: Fri, 19 Apr 2019 12:30:35 +0000 (+0200) Subject: Fix the URL to send the email report X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=d891414424913e7bcf2845740cd5c532a858877e;p=ci-management.git Fix the URL to send the email report The 'LAVA_MASTER_URI' used is wrong, this patch fixes the url. It adds also a check on the output of lavacli command before to send the test email report. Change-Id: I156024e2ee4f268a4631a5723438683eb6f2df39 Signed-off-by: Khouloud Touil --- diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh index fa00fd45..d73c6171 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -85,14 +85,17 @@ if [ -n "$KCI_EMAIL_AUTH_TOKEN" ]; then TREE_NAME=$(grep kernel.tree: $JOB_FILE_NEW | sed 's,[[:space:]],,g' | cut -d: -f2) BRANCH=$(grep git.branch: $JOB_FILE_NEW | sed 's,[[:space:]],,g' | cut -d: -f2) GIT_DESCRIBE="$(grep kernel.version: $JOB_FILE_NEW | sed 's,[[:space:]],,g' | cut -d: -f2)" - lavacli --uri $LAVA_MASTER_URI results $job_id | grep '* [0-9]' |cut -d_ -f2- |cut -d. -f1 | sort | uniq > test_plans - if [ $? -eq 0 ] && [ -s test_plans ]; then - for plan in $( test_plan.raw + if [ $? -eq 0 ]; then + grep '* [0-9]' test_plan.raw |cut -d_ -f2- |cut -d. -f1 | sort | uniq > test_plans + if [ $? -eq 0 ] && [ -s test_plans ]; then + for plan in $(