Skip to content

Commit d432ec7

Browse files
committed
CH-166 fix characters in path
1 parent f0e415d commit d432ec7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/deployment-cli-tools/ch_cli_tools/codefresh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import os
2-
from os.path import join, relpath, exists, dirname
2+
from os.path import join, relpath, exists, dirname, basename
33
from cloudharness_model.models.git_dependency_config import GitDependencyConfig
44
import requests
55
import logging
@@ -175,7 +175,7 @@ def codefresh_steps_from_base_path(base_path, build_step, fixed_context=None, in
175175

176176
if app_config and app_config.dependencies and app_config.dependencies.git:
177177
for dep in app_config.dependencies.git:
178-
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)
178+
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)
179179

180180
build = None
181181
if build_step in steps:

0 commit comments

Comments
 (0)