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")