aboutsummaryrefslogtreecommitdiffstats
path: root/vsperf
diff options
context:
space:
mode:
authorMartin Klozik <martinx.klozik@intel.com>2017-08-24 09:01:41 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-24 09:01:41 +0000
commit7032b8ec49833084b9e7c06442a9756a3ec7e501 (patch)
tree3d47fca7f8f33a1465add7f0cc8457d671a83036 /vsperf
parentffc0fc7902e2f46cb5982f55aacd262073f08e1c (diff)
parentc9ae2766fd566358a1ac3a38a7dc6f7b22a3449f (diff)
Merge "opnfvresultdb: Update data reported to result DB"
Diffstat (limited to 'vsperf')
-rwxr-xr-xvsperf15
1 files changed, 14 insertions, 1 deletions
diff --git a/vsperf b/vsperf
index bb0e199b..f4bc63b8 100755
--- a/vsperf
+++ b/vsperf
@@ -306,7 +306,18 @@ def get_vswitch_names(rst_files):
# fallback to the default value
return ['vSwitch']
+def get_build_tag():
+ """ Function will return a Jenkins job ID environment variable.
+ """
+
+ try:
+ build_tag = os.environ['BUILD_TAG']
+
+ except KeyError:
+ _LOGGER.warning('Cannot detect Jenkins job ID')
+ build_tag = "none"
+ return build_tag
def generate_final_report():
""" Function will check if partial test results are available
@@ -692,12 +703,14 @@ def main():
if args['opnfvpod']:
pod_name = args['opnfvpod']
- installer_name = settings.getValue('OPNFV_INSTALLER')
+ installer_name = str(settings.getValue('OPNFV_INSTALLER')).lower()
opnfv_url = settings.getValue('OPNFV_URL')
pkg_list = settings.getValue('PACKAGE_LIST')
int_data = {'vanilla': False,
'pod': pod_name,
+ 'criteria': "PASS",
+ 'build_tag': get_build_tag(),
'installer': installer_name,
'pkg_list': pkg_list,
'db_url': opnfv_url}