From 75ad4675169be0fcabc903f47bd8016656169434 Mon Sep 17 00:00:00 2001 From: Julien Date: Sat, 27 Jan 2018 23:52:49 +0800 Subject: Report the result to TestAPI Report the provision result to TestAPI. Change-Id: I05a3a870125c2b1e74b98da043b53684ea334683 Signed-off-by: Julien --- jjb/global/installer-report.sh | 39 +++++++++++++++++++++++++-------------- jjb/global/releng-macros.yml | 6 +++++- 2 files changed, 30 insertions(+), 15 deletions(-) (limited to 'jjb/global') diff --git a/jjb/global/installer-report.sh b/jjb/global/installer-report.sh index e2fcfd6f6..c9c730594 100755 --- a/jjb/global/installer-report.sh +++ b/jjb/global/installer-report.sh @@ -8,18 +8,29 @@ ############################################################################## source $WORKSPACE/installer_track.sh -echo """ - INSTALLER: $INSTALLER - INSTALLER_VERSION: $INSTALLER_VERSION - JOB_NAME: $JOB_NAME - BUILD_ID: $BUILD_ID - SENARIO: $DEPLOY_SCENARIO - UPSTREAM_JOB_NAME: $UPSTREAM_JOB_NAME: - UPSTREAM_BUILD_ID: $UPSTREAM_BUILD_ID - PROVISION_RESULT: $PROVISION_RESULT - TIMESTAMP_START: $TIMESTAMP_START - TIMESTAMP_END: `date '+%Y-%m-%d %H:%M:%S.%3N'` - POD_NAME: $NODE_NAME -""" -# TODO call TestAPI to report installer provisoin result when API is ready +gen_content() +{ + cat <> $WORKSPACE/installer_track.sh + echo "export PROVISION_RESULT=PASS" >> $WORKSPACE/installer_track.sh echo "export INSTALLER={installer}" >> $WORKSPACE/installer_track.sh - shell: !include-raw-escape: installer-report.sh -- cgit 1.2.3-korg