fix: stream artifact download progress to jobs

This commit is contained in:
Codex
2026-06-02 09:24:18 +00:00
parent 66ec934160
commit 9243a736c9
3 changed files with 16 additions and 6 deletions
+7 -2
View File
@@ -1671,7 +1671,7 @@ function combineCommandResults(command: string[], parts: CommandResult[]): Comma
}
function downloadRemoteFile(options: ArtifactRegistryOptions, remotePath: string, localPath: string, timeoutMs = options.timeoutMs): CommandResult {
return runCommand([
const result = runCommand([
process.execPath,
"scripts/cli.ts",
"ssh",
@@ -1681,7 +1681,12 @@ function downloadRemoteFile(options: ArtifactRegistryOptions, remotePath: string
"64000",
remotePath,
localPath,
], repoRoot, { timeoutMs });
], repoRoot, {
timeoutMs,
teeStdoutFile: process.env.UNIDESK_JOB_STDOUT_FILE,
teeStderrFile: process.env.UNIDESK_JOB_STDERR_FILE,
});
return result;
}
async function runRemoteScriptBackground(