diff options
author | boucherv <valentin.boucher@orange.com> | 2016-02-24 14:33:51 +0100 |
---|---|---|
committer | boucherv <valentin.boucher@orange.com> | 2016-02-24 15:19:34 +0100 |
commit | 831ec1cf15cc6b945a86c4885331d51a295004c9 (patch) | |
tree | 48ac6b31ecdcf24a6a4bd5f2c7633a934114feff /testcases/VIM/OpenStack/CI/libraries | |
parent | 9de85e7fcd1fa33982fd494d2f7b6e169eef8b91 (diff) |
Add jenkins build tag for result api
Ex: jenkins-functest-compass-intel-pod8-daily-master-19
this will bring together all tests passed on the same functest run
JIRA: FUNCTEST-140
Change-Id: I3c1cd8137184509ee5fdeeb2df5399d4c71e3f67
Signed-off-by: boucherv <valentin.boucher@orange.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI/libraries')
-rwxr-xr-x | testcases/VIM/OpenStack/CI/libraries/run_rally.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/run_rally.py b/testcases/VIM/OpenStack/CI/libraries/run_rally.py index 6b1aae2eb..1ea6ca6db 100755 --- a/testcases/VIM/OpenStack/CI/libraries/run_rally.py +++ b/testcases/VIM/OpenStack/CI/libraries/run_rally.py @@ -106,10 +106,12 @@ def push_results_to_db(case, payload): installer = functest_utils.get_installer_type(logger) scenario = functest_utils.get_scenario(logger) pod_name = functest_utils.get_pod_name(logger) + build_tag = functest_utils.get_build_tag(logger) # TODO pod_name hardcoded, info shall come from Jenkins params = {"project_name": "functest", "case_name": case, "pod_name": pod_name, "installer": installer, - "version": scenario, "details": payload} + "version": scenario, "build_tag": build_tag, + "details": payload} headers = {'Content-Type': 'application/json'} r = requests.post(url, data=json.dumps(params), headers=headers) |