diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-02-14 13:58:21 +0100 |
---|---|---|
committer | Jose Lausuch <jose.lausuch@ericsson.com> | 2017-02-14 22:38:03 +0000 |
commit | 82d976978545adeb30ea2808f60136798e9f2cc8 (patch) | |
tree | 2247228175f989380efa08aef158aa4e24436315 /reporting/utils | |
parent | 44afde12259d551b74cd0a5d66637e53443ad045 (diff) |
Bug Fix: tranlate build tag into jenkins url
Include HEALTHCHECK Tier in the reporting
Change-Id: I4a5a8aeb7564ca35c9199c7925ac344b43270d87
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'reporting/utils')
-rw-r--r-- | reporting/utils/reporting_utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reporting/utils/reporting_utils.py b/reporting/utils/reporting_utils.py index fc5d188..1879fb6 100644 --- a/reporting/utils/reporting_utils.py +++ b/reporting/utils/reporting_utils.py @@ -269,7 +269,8 @@ def getJenkinsUrl(build_tag): url_base = get_config('functest.jenkins_url') try: build_id = [int(s) for s in build_tag.split("-") if s.isdigit()] - url_id = build_tag[8:-(len(build_id) + 3)] + "/" + str(build_id[0]) + url_id = (build_tag[8:-(len(str(build_id[0])) + 1)] + + "/" + str(build_id[0])) jenkins_url = url_base + url_id + "/console" except: print('Impossible to get jenkins url:') |