SPEC-2703: print a link to the job log 14/22614/3
authorCorentin LABBE <clabbe@baylibre.com>
Fri, 11 Oct 2019 09:04:30 +0000 (11:04 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 11 Oct 2019 12:24:24 +0000 (12:24 +0000)
This patchs adds a link to the console logs when sending result.

Bug-AGL: SPEC-2703
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Change-Id: Idb95e5cdf80072c4cfdce95ecc4facabffb43caf

jjb/common/include-agl-lava-jobs-submit.sh

index f42d4e0..c50f517 100644 (file)
@@ -139,12 +139,14 @@ if [ -s job-result.fail ];then
        handle_skiplist
 fi
 
+BUILD_LOG_MSG="LOGURL: $BUILD_URL/consoleFull"
+
 if [ $GOODJOB -eq 0 ];then
        # send -1
-       ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER} --verified +1 --label ci-image-boot-test=-1 -n NONE --message="CI-Image-Boot-Test\ fail\ on\ ${MACHINE}" || true
+       ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER} --verified +1 --label ci-image-boot-test=-1 -n NONE --message="CI-Image-Boot-Test\ fail\ on\ ${MACHINE}\ ${BUILD_LOG_MSG}" || true
 else
        # send +1
-       ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER} --verified +1 --label ci-image-boot-test=+1 -n NONE --message="CI-Image-Boot-Test\ success\ on\ ${MACHINE}" || true
+       ssh -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" -p 29418 agl-jobbuilder@gerrit.automotivelinux.org gerrit review ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER} --verified +1 --label ci-image-boot-test=+1 -n NONE --message="CI-Image-Boot-Test\ success\ on\ ${MACHINE}\ ${BUILD_LOG_MSG}" || true
 fi
 
 # after one successful submit, we're done