20260601 优化sequence远端产物拉取
This commit is contained in:
parent
00d7109503
commit
bf8c924326
@ -56,6 +56,7 @@ def rsync_from_remote(target: str, source: str | Path, destination: Path) -> Non
|
|||||||
|
|
||||||
def rsync_run_artifacts_from_remote(target: str, source: str | Path, destination: Path) -> None:
|
def rsync_run_artifacts_from_remote(target: str, source: str | Path, destination: Path) -> None:
|
||||||
destination.mkdir(parents=True, exist_ok=True)
|
destination.mkdir(parents=True, exist_ok=True)
|
||||||
|
rsync_base = ["rsync", "-az", "--partial", "--partial-dir=.rsync-partial"]
|
||||||
for name in [
|
for name in [
|
||||||
"result.ccr",
|
"result.ccr",
|
||||||
"result.cir",
|
"result.cir",
|
||||||
@ -65,7 +66,7 @@ def rsync_run_artifacts_from_remote(target: str, source: str | Path, destination
|
|||||||
"started-at.txt",
|
"started-at.txt",
|
||||||
"finished-at.txt",
|
"finished-at.txt",
|
||||||
]:
|
]:
|
||||||
run_local(["rsync", "-a", f"{target}:{source}/{name}", f"{destination}/"])
|
run_local([*rsync_base, f"{target}:{source}/{name}", f"{destination}/"])
|
||||||
|
|
||||||
|
|
||||||
def load_json(path: Path) -> Any:
|
def load_json(path: Path) -> Any:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user