feat: configure WebDAV artifact destination path
This commit is contained in:
@@ -51,7 +51,7 @@ DEFAULT_UPLOAD = {
|
||||
"server_url": "",
|
||||
"username": "",
|
||||
"password": "",
|
||||
"base_path": "/ios-builds",
|
||||
"base_path": "/",
|
||||
"public_url": "",
|
||||
},
|
||||
"dingtalk": {
|
||||
|
||||
@@ -225,7 +225,7 @@ async def delete_task(task_id: str, request: Request, user: dict = Depends(get_c
|
||||
build_config = json.loads(task.config_json)
|
||||
from .config import load_config
|
||||
from ..services.distribution import DistributionError, delete_published_dsym
|
||||
delete_published_dsym(build_config, load_config().get("upload", {}))
|
||||
delete_published_dsym(build_config, load_config().get("upload", {}), task.dsym_url)
|
||||
except (json.JSONDecodeError, DistributionError) as exc:
|
||||
raise HTTPException(status_code=502, detail=f"远端 dSYM 删除失败,记录未删除:{exc}") from exc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user