diff options
author | 2016-02-26 15:40:54 +0100 | |
---|---|---|
committer | 2016-02-26 15:40:54 +0100 | |
commit | ed797f288e8d1b4486f21c8217d97f3be72b6d0c (patch) | |
tree | 5b75d5671170ee960ad91cdad60f9ab4df87d8ba /result_collection_api/resources/handlers.py | |
parent | d172921af5d56a55018af9776b85a2ddfad980bb (diff) |
Add jenkins build tag into result api
Ex: jenkins-functest-compass-intel-pod8-daily-master-19
Change-Id: I336d3908d6d67ba7f995d0fc25b5404efd9b5cf5
JIRA: FUNCTEST-140
Signed-off-by: boucherv <valentin.boucher@orange.com>
Diffstat (limited to 'result_collection_api/resources/handlers.py')
-rw-r--r-- | result_collection_api/resources/handlers.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/result_collection_api/resources/handlers.py b/result_collection_api/resources/handlers.py index 6443fc4..1f4d0bb 100644 --- a/result_collection_api/resources/handlers.py +++ b/result_collection_api/resources/handlers.py @@ -508,6 +508,7 @@ class TestResultsHandler(GenericApiHandler): - pod : pod name - version : platform version (Arno-R1, ...) - installer (fuel, ...) + - build_tag : Jenkins build tag name - period : x (x last days) @@ -524,6 +525,7 @@ class TestResultsHandler(GenericApiHandler): pod_arg = self.get_query_argument("pod", None) version_arg = self.get_query_argument("version", None) installer_arg = self.get_query_argument("installer", None) + build_tag_arg = self.get_query_argument("build_tag", None) period_arg = self.get_query_argument("period", None) # prepare request @@ -544,6 +546,9 @@ class TestResultsHandler(GenericApiHandler): if installer_arg is not None: get_request["installer"] = installer_arg + if build_tag_arg is not None: + get_request["build_tag"] = build_tag_arg + if period_arg is not None: try: period_arg = int(period_arg) |