From 831ec1cf15cc6b945a86c4885331d51a295004c9 Mon Sep 17 00:00:00 2001 From: boucherv Date: Wed, 24 Feb 2016 14:33:51 +0100 Subject: 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 --- testcases/features/doctor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testcases/features/doctor.py') diff --git a/testcases/features/doctor.py b/testcases/features/doctor.py index 5669a9900..52ffaa900 100644 --- a/testcases/features/doctor.py +++ b/testcases/features/doctor.py @@ -63,17 +63,19 @@ def main(): } pod_name = functest_utils.get_pod_name(logger) scenario = functest_utils.get_scenario(logger) + build_tag = functest_utils.get_build_tag(logger) logger.info("Pushing result: TEST_DB_URL=%(db)s pod_name=%(pod)s " "scenario=%(s)s details=%(d)s" % { 'db': TEST_DB_URL, 'pod': pod_name, 's': scenario, + 'b': build_tag, 'd': details, }) functest_utils.push_results_to_db(TEST_DB_URL, 'doctor','doctor-notification', logger, pod_name, scenario, - details) + build_tag, details) if __name__ == '__main__': -- cgit 1.2.3-korg