From d432ec7402425ff2c6fca428dd672f5569c0e2b9 Mon Sep 17 00:00:00 2001 From: Filippo Ledda Date: Thu, 12 Dec 2024 17:51:48 +0100 Subject: [PATCH] CH-166 fix characters in path --- tools/deployment-cli-tools/ch_cli_tools/codefresh.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/deployment-cli-tools/ch_cli_tools/codefresh.py b/tools/deployment-cli-tools/ch_cli_tools/codefresh.py index f6d6a33f..3ea43e31 100644 --- a/tools/deployment-cli-tools/ch_cli_tools/codefresh.py +++ b/tools/deployment-cli-tools/ch_cli_tools/codefresh.py @@ -1,5 +1,5 @@ import os -from os.path import join, relpath, exists, dirname +from os.path import join, relpath, exists, dirname, basename from cloudharness_model.models.git_dependency_config import GitDependencyConfig import requests import logging @@ -175,7 +175,7 @@ def codefresh_steps_from_base_path(base_path, build_step, fixed_context=None, in if app_config and app_config.dependencies and app_config.dependencies.git: for dep in app_config.dependencies.git: - steps[CD_BUILD_STEP_DEPENDENCIES]['steps'][f"clone_{os.path.basename(dep.url)}_{os.path.basename(dockerfile_relative_to_root)}"] = clone_step_spec(dep, dockerfile_relative_to_root) + steps[CD_BUILD_STEP_DEPENDENCIES]['steps'][f"clone_{basename(dep.url).replace(".", "_")}_{basename(dockerfile_relative_to_root).replace(".", "_")}"] = clone_step_spec(dep, dockerfile_relative_to_root) build = None if build_step in steps: