From 074e77196e320f74a9ec48d83b4c940f2f9c2cc8 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 11 Aug 2023 14:24:11 +0200 Subject: [PATCH] wip calculate-sha [skip-ci] --- src/main/python/ddadevops/application/release_mixin_services.py | 2 +- src/main/python/ddadevops/infrastructure/infrastructure.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/python/ddadevops/application/release_mixin_services.py b/src/main/python/ddadevops/application/release_mixin_services.py index f9aeb53..84c5533 100644 --- a/src/main/python/ddadevops/application/release_mixin_services.py +++ b/src/main/python/ddadevops/application/release_mixin_services.py @@ -61,7 +61,7 @@ class ReleaseService: self.git_api.push_follow_tags() def publish_artifacts(self, release: Release): - # calculate checksum + self.artifact_deployment_api.calculate_checksums(artifact_path=) # create release # add artifacts to release pass diff --git a/src/main/python/ddadevops/infrastructure/infrastructure.py b/src/main/python/ddadevops/infrastructure/infrastructure.py index 40fee1b..878581c 100644 --- a/src/main/python/ddadevops/infrastructure/infrastructure.py +++ b/src/main/python/ddadevops/infrastructure/infrastructure.py @@ -231,6 +231,6 @@ class ArtifactDeploymentApi: + '-H "Content-Type: multipart/form-data" ' + f'-F "attachment=@{attachment};type={attachment_type}"') - def calculate_checksums(self, build_path: str): + def calculate_checksums(self, artifact_path: str): self.execution_api.execute(f"find {build_path} -type f -exec sha256sum {{}}; | sort > {build_path} sha256sum.lst") self.execution_api.execute(f"find {build_path} -type f -exec sha512sum {{}}; | sort > {build_path} sha512sum.lst")