diff options
author | 2020-12-02 02:52:15 +0100 | |
---|---|---|
committer | 2020-12-02 02:52:15 +0100 | |
commit | 7b750ff5fae138456a0565f07ea4d1f951404018 (patch) | |
tree | 323a61bb9c179ca49e4f5bab8260ca3fd4b7da71 /jjb/common/include-agl-lava-jobs-submit.sh | |
parent | 1093060e644b86cc969f4fc72e92be23c2d373d9 (diff) |
Update application job messaging and jellyfish branch support
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Change-Id: If44134e2b036493db636571dc89b51be4ff8f53d
Diffstat (limited to 'jjb/common/include-agl-lava-jobs-submit.sh')
-rw-r--r-- | jjb/common/include-agl-lava-jobs-submit.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/jjb/common/include-agl-lava-jobs-submit.sh b/jjb/common/include-agl-lava-jobs-submit.sh index b7c393d2..08b2f4e8 100644 --- a/jjb/common/include-agl-lava-jobs-submit.sh +++ b/jjb/common/include-agl-lava-jobs-submit.sh @@ -54,7 +54,7 @@ EOF sed -i -e "s/ /\\\ /g" .msg #### echo back to gerrit #set -x -eval ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER} -n NONE --message='"$(cat .msg)"' || true +#eval ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER} -n NONE --message='"$(cat .msg)"' || true #set +x @@ -164,12 +164,17 @@ if [ -s job-result.fail ];then fi set -x LINES_PERCENT=$(grep LINES_PERCENT= $JOB_LOG | sed -e 's#LINES_PERCENT=##g' | head -1) -BRANCHES_PERCENT=$(grep BRANCHES_PERCENT= $JOB_LOG | sed -e 's#LINES_PERCENT=##g' | head -1) +BRANCHES_PERCENT=$(grep BRANCHES_PERCENT= $JOB_LOG | sed -e 's#BRANCHES_PERCENT=##g' | head -1) +if [ -n $LINES_PERCENT -a -n $BRANCHES_PERCENT ] ; then MSG_FAIL="CI-Image-Boot-Test fail on ${MACHINE}. Coverage: Lines ${LINES_PERCENT:-0}% , Branches ${BRANCHES_PERCENT:-0}% ${JOB_URL}" MSG_SUCCESS="CI-Image-Boot-Test success on ${MACHINE}. Coverage: Lines ${LINES_PERCENT:-0}% , Branches ${BRANCHES_PERCENT:-0}% ${JOB_URL}" +else +MSG_FAIL="CI-Image-Boot-Test fail on ${MACHINE}. ${JOB_URL}" +MSG_SUCCESS="CI-Image-Boot-Test success on ${MACHINE}. ${JOB_URL}" +fi MSG_BUILD_LOG="${BUILD_URL}consoleFull" MSG_JOBFAIL="Failed jobs: |