From f8ec35860aada7977f9e84c02d20b27cfaa921a7 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Wed, 16 Aug 2023 18:18:40 +0200 Subject: [PATCH] add more debugging info --- .gitlab-ci.yml | 2 +- .../python/ddadevops/application/release_mixin_services.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e8e528a..260e36a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: - image .py: &py - image: "domaindrivenarchitecture/ddadevops-python:4.5.1-dev2023-08-16-17-49-58" + image: "domaindrivenarchitecture/ddadevops-python:4.5.2-dev2023-08-16-18-10-19" before_script: - export RELEASE_ARTIFACT_TOKEN=$RELEASE_ARTIFACT_TOKEN - python --version diff --git a/src/main/python/ddadevops/application/release_mixin_services.py b/src/main/python/ddadevops/application/release_mixin_services.py index bc3ab0a..12c3932 100644 --- a/src/main/python/ddadevops/application/release_mixin_services.py +++ b/src/main/python/ddadevops/application/release_mixin_services.py @@ -89,7 +89,11 @@ class ReleaseService: def __parse_forgejo_release_id__(self, release_response: str) -> int: parsed = json.loads(release_response) - return parsed["id"] + try: + result = parsed["id"] + except: + raise RuntimeError(str(parsed)) + return result def __set_version_and_commit__( self, version: Version, build_file_ids: List[str], message: str