From c15503b7a0fd970c6ebcd31b24880de3e8b73d59 Mon Sep 17 00:00:00 2001 From: bom Date: Thu, 3 Aug 2023 12:15:18 +0200 Subject: [PATCH] Update artifact deployment mixin --- src/main/python/ddadevops/artifact_deployment_mixin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/python/ddadevops/artifact_deployment_mixin.py b/src/main/python/ddadevops/artifact_deployment_mixin.py index 144fe53..d48e91c 100644 --- a/src/main/python/ddadevops/artifact_deployment_mixin.py +++ b/src/main/python/ddadevops/artifact_deployment_mixin.py @@ -1,5 +1,6 @@ from pybuilder.core import Project from .devops_build import DevopsBuild +from .domain import MixinType # """ # Functional Req: @@ -46,7 +47,7 @@ from .devops_build import DevopsBuild # generate sha256 sums & generate sha512 sums of results of [-1] # [6] -# push results of [-1] & [5] to [0]/[4] +# push results of [-1] & [5] to [0]/[4]/assets # """ @@ -54,3 +55,7 @@ from .devops_build import DevopsBuild class ArtifactDeploymentMixin(DevopsBuild): def __init__(self, project: Project, inp: dict): super().__init__(project, inp) + devops = self.devops_repo.get_devops(self.project) + if MixinType.ARTIFACT_DEPLOYMENT not in devops.mixins: # TODO: Check for Release mixin as well + raise ValueError("ArtifactDeploymentMixin requires MixinType.ARTIFACT_DEPLOYMENT") + self.base_url = 'https://repo.prod.meissa.de/api/v1/repos/'