Skip to content

Commit

Permalink
Merge pull request #631 from bensonhome/main
Browse files Browse the repository at this point in the history
🎨优化自定义工具拉取依赖逻辑
  • Loading branch information
cyw3 authored Sep 28, 2022
2 parents 17385ce + ca5b5d1 commit ba51d95
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 8 deletions.
9 changes: 1 addition & 8 deletions client/node/localtask/taskprocessmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,7 @@ def get_supported_processes(origin_os_env, task_name, task_params, custom_tools)
# 加载工具执行需要的环境变量
task_params["tool_name"] = task_name
task_list = ConfigUtil.generate_task_list(task_params)
if ConfigUtil.use_new_tool_lib_config(task_params): # 使用依赖库配置
tool_names = [task_name]
else: # 使用ini配置
if task_name in custom_tools:
tool_names = ["customtool"]
else:
tool_names = [task_name]
ToolLoader(tool_names=tool_names, task_list=task_list, custom_tools=custom_tools,
ToolLoader(tool_names=[task_name], task_list=task_list, custom_tools=custom_tools,
include_common=True).set_tool_env()

# 加载任务环境变量
Expand Down
Binary file modified client/task/runtask.cp37-win_amd64.pyd
Binary file not shown.
Binary file modified client/task/runtask.cpython-37m-aarch64-linux-gnu.so
Binary file not shown.
Binary file modified client/task/runtask.cpython-37m-darwin.so
Binary file not shown.
Binary file modified client/task/runtask.cpython-37m-x86_64-linux-gnu.so
Binary file not shown.
Binary file modified client/tool/customtool.cp37-win_amd64.pyd
Binary file not shown.
Binary file modified client/tool/customtool.cpython-37m-aarch64-linux-gnu.so
Binary file not shown.
Binary file modified client/tool/customtool.cpython-37m-darwin.so
Binary file not shown.
Binary file modified client/tool/customtool.cpython-37m-x86_64-linux-gnu.so
Binary file not shown.
3 changes: 3 additions & 0 deletions client/util/scmurlmgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def get_last_dir_name_from_url(scm_url):
dirname = dirname.replace(".zip", "")
if dirname.endswith(".7z"):
dirname = dirname.replace(".7z", "")
# 如果url包含分支,即 .git#BranchName 的格式,目录名删除.git
if ".git#" in dirname:
dirname = dirname.replace(".git#", "#")
return dirname


Expand Down

0 comments on commit ba51d95

Please sign in to comment.