Print out original job URL 97/21197/2
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 29 Apr 2019 21:32:30 +0000 (23:32 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 29 Apr 2019 21:43:15 +0000 (21:43 +0000)
Instead of the verify-fail job print the parent job url.

Change-Id: Id7b9f24d93eb527ecadeb4e3dfbf06c39b719410
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/ci-AGL-verify/ci-platform-jjb.yaml

index f27e80c..aa4103f 100644 (file)
           - ci-platform-{project}-verify-failure
           condition: FAILED
           current-parameters: true
+          predefined-parameters: ORIG_BUILD_URL=${{BUILD_URL}}
 
 
 ################################################################################################################################################################
           set
           echo "#### Verified -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 -n NONE --message="CI-cycle\ failed.\ URL:\ ${{BUILD_URL}}" || true
-          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="CI-cycle\ failed.\ URL:\ ${{BUILD_URL}}" || 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 -n NONE --message="CI-cycle\ failed.\ URL:\ ${{ORIG_BUILD_URL}}" || true
 
 
 ################################################################################################################################################################