From 0ba623c5609994bfcc562e4ec6cec9f3d8d78e30 Mon Sep 17 00:00:00 2001 From: Mirco Date: Fri, 22 Dec 2023 15:17:36 +0100 Subject: [PATCH] ignore missing image/test folder --- src/main/python/ddadevops/application/image_build_service.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/python/ddadevops/application/image_build_service.py b/src/main/python/ddadevops/application/image_build_service.py index 8f5dfc6..c026b4b 100644 --- a/src/main/python/ddadevops/application/image_build_service.py +++ b/src/main/python/ddadevops/application/image_build_service.py @@ -51,7 +51,10 @@ class ImageBuildService: else: self.__copy_build_resources_from_dir__(devops) self.file_api.cp_recursive("image", build_path) - self.file_api.cp_recursive("test", build_path) + try: + self.file_api.cp_recursive("test", build_path) + except FileNotFoundError as err: + print("File not found", err) def image(self, devops: Devops): image = devops.specialized_builds[BuildType.IMAGE]