X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fglobal%2Finstaller-report.sh;h=6cd83f1f1cdfc826c95bf6dbd7d73a4cd17cd29b;hb=84e4b164e8a513f17f52e463120ae8a8d2ac2053;hp=c9c730594194055b4fe47999a9d7d4639ce9b52e;hpb=75ad4675169be0fcabc903f47bd8016656169434;p=releng.git diff --git a/jjb/global/installer-report.sh b/jjb/global/installer-report.sh index c9c730594..6cd83f1f1 100755 --- a/jjb/global/installer-report.sh +++ b/jjb/global/installer-report.sh @@ -15,10 +15,10 @@ gen_content() { "installer": "$INSTALLER", "version": "$INSTALLER_VERSION", - "pod_name": "$POD_NAME", + "pod_name": "$NODE_NAME", "job_name": "$JOB_NAME", "build_id": "$BUILD_ID", - "scenario": "$SCENARIO", + "scenario": "$DEPLOY_SCENARIO", "upstream_job_name": "$UPSTREAM_JOB_NAME", "upstream_build_id":"$UPSTREAM_BUILD_ID", "criteria": "$PROVISION_RESULT", @@ -33,4 +33,14 @@ echo "Installer: $INSTALLER provision result: $PROVISION_RESULT" echo $(gen_content) set -o xtrace -curl -H "Content-Type: application/json" -X POST -v -d "$(gen_content)" $TESTAPI_URL/deployresults +curl -H "Content-Type: application/json" -X POST -v -d "$(gen_content)" \ + $TESTAPI_URL/deployresults || true + +# INFO +# postbuildscript plugin shall always return the original job running status, +# for the result returned from postbuildscript affects the CI pipeline. +if [ "$PROVISION_RESULT" == "PASS" ]; then + exit 0 +else + exit 1 +fi