Add macro for reporting the provision result
[releng.git] / jjb / global / installer-report.sh
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2017 ZTE Corporation and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 source $WORKSPACE/installer_track.sh
11 echo """
12     INSTALLER: $INSTALLER
13     INSTALLER_VERSION: $INSTALLER_VERSION
14     JOB_NAME: $JOB_NAME
15     BUILD_ID: $BUILD_ID
16     SENARIO: $DEPLOY_SCENARIO
17     UPSTREAM_JOB_NAME: $UPSTREAM_JOB_NAME:
18     UPSTREAM_BUILD_ID: $UPSTREAM_BUILD_ID
19     PROVISION_RESULT: $PROVISION_RESULT
20     TIMESTAMP_START: $TIMESTAMP_START
21     TIMESTAMP_END: `date '+%Y-%m-%d %H:%M:%S.%3N'`
22     POD_NAME: $NODE_NAME
23 """
24
25 # TODO call TestAPI to report installer provisoin result when API is ready