diff options
Diffstat (limited to 'vsperf')
-rwxr-xr-x | vsperf | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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} |