From 337a7900444f8486387ed23cb1d33dfa0819367d Mon Sep 17 00:00:00 2001 From: erik Date: Fri, 11 Aug 2023 14:38:41 +0200 Subject: [PATCH] Implement checksum calculation --- doc/architecture/Domain.md | 1 + .../python/ddadevops/application/release_mixin_services.py | 3 ++- src/main/python/ddadevops/domain/release.py | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/architecture/Domain.md b/doc/architecture/Domain.md index afb8378..a865a1e 100644 --- a/doc/architecture/Domain.md +++ b/doc/architecture/Domain.md @@ -88,6 +88,7 @@ classDiagram release_type release_main_branch release_current_branch + release_artifacts } class Credentials { <> diff --git a/src/main/python/ddadevops/application/release_mixin_services.py b/src/main/python/ddadevops/application/release_mixin_services.py index 84c5533..6b5624b 100644 --- a/src/main/python/ddadevops/application/release_mixin_services.py +++ b/src/main/python/ddadevops/application/release_mixin_services.py @@ -61,7 +61,8 @@ class ReleaseService: self.git_api.push_follow_tags() def publish_artifacts(self, release: Release): - self.artifact_deployment_api.calculate_checksums(artifact_path=) + for artifact_path in release.release_artifacts: + self.artifact_deployment_api.calculate_checksums(artifact_path) # create release # add artifacts to release pass diff --git a/src/main/python/ddadevops/domain/release.py b/src/main/python/ddadevops/domain/release.py index e8a6db5..ae3720b 100644 --- a/src/main/python/ddadevops/domain/release.py +++ b/src/main/python/ddadevops/domain/release.py @@ -17,6 +17,9 @@ class Release(Validateable): self.release_primary_build_file = inp.get( "release_primary_build_file", "./project.clj" ) + self.release_artifacts = inp.get( + "release_artifacts", [] + ) self.release_secondary_build_files = inp.get( "release_secondary_build_files", [] )